UNPKG

netsuite-mockups

Version:
27 lines (25 loc) 637 B
const Form = require('./form.jsx'); /** * Return a Netsuite server/widget Module * * @classDescription server/widget object * @constructor * @returns {N/server/widget} */ module.exports = function (name) { const FieldType = { DATE: 'date' }; const FieldLayoutType = { NORMAL: 'normal' }; const FieldBreakType = { STARTCOL: 'startcol' }; const FieldDisplayType = { HIDDEN: 'hidden' }; const SublistType = { LIST: 'list' }; this.name = name; this.values = {}; return { FieldType, FieldLayoutType, FieldBreakType, FieldDisplayType, SublistType, createForm: obj => new Form(obj.title), }; };