formiojs
Version:
Common js library for client side interaction with <form.io>
102 lines (101 loc) • 1.96 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _default = [{
key: 'inputMask',
ignore: true
}, {
key: 'allowMultipleMasks',
ignore: true
}, {
type: 'number',
input: true,
key: 'rows',
label: 'Rows',
weight: 210,
tooltip: 'This allows control over how many rows are visible in the text area.',
placeholder: 'Enter the amount of rows'
}, {
type: 'select',
input: true,
key: 'editor',
label: 'Editor',
tooltip: 'Select the type of WYSIWYG editor to use for this text area.',
dataSrc: 'values',
data: {
values: [{
label: 'None',
value: ''
}, {
label: 'Quill',
value: 'quill'
}, {
label: 'ACE',
value: 'ace'
}]
},
weight: 415
}, {
type: 'select',
input: true,
key: 'as',
label: 'Save As',
dataSrc: 'values',
tooltip: 'This setting determines how the value should be entered and stored in the database.',
clearOnHide: true,
data: {
values: [{
label: 'String',
value: 'string'
}, {
label: 'JSON',
value: 'json'
}, {
label: 'HTML',
value: 'html'
}]
},
conditional: {
json: {
or: [{
'===': [{
var: 'data.editor'
}, 'quill']
}, {
'===': [{
var: 'data.editor'
}, 'ace']
}]
}
},
weight: 416
}, {
type: 'textarea',
input: true,
editor: 'ace',
rows: 10,
as: 'json',
label: 'Editor Settings',
tooltip: 'Enter the WYSIWYG editor JSON configuration.',
key: 'wysiwyg',
customDefaultValue: function customDefaultValue(value, component, row, data, instance) {
return instance.wysiwygDefault;
},
conditional: {
json: {
or: [{
'===': [{
var: 'data.editor'
}, 'quill']
}, {
'===': [{
var: 'data.editor'
}, 'ace']
}]
}
},
weight: 417
}];
exports.default = _default;