Configuration
Settings form generated from a declaration of typed properties such as text, number, date, dropdown and color
- supports dark mode
Configuration:
dateformat {String}a default date format (default:DEF.dateformat)
Declaration
Allowed properties:
type {String}supports:stringnumberdatebooleandropdowncoloriconmultilineselectable
text {String}a text/titlename {String}a name of property in the modelalign {Number}align for inputs (0left (default),1center,2right)icon {String}optional, Total JS or font-awesome icon identifiersummary {String}optional, a summarizationnote {String}optional, a noterequired {Boolean}optional, is the property required?disable {String}optional, declaration of arrow function in the formvalue.interval === 100visible {String}optional, declaration of arrow function in the formvalue.interval === 100button {String}optional, creates a small buttonclick {String}optional, a link to the method (depends on thebutton)maxlength {Number}optional, supports onlystringtypemin {Number}optional, supports onlynumbertypemax {Number}optional, supports onlynumbertypeincrement {Number}optional, an increment count - supports onlynumbertype (default:1)multiple {Boolean}optional, works withselectabletype (a value will be array)monospace {Boolean}optional, works withstringandnumbertypesbold {Boolean}optional, works withstringandnumbertypesplaceholder {String}optionalitems {String/Object Array}optional fordropdownandselectablein the form[{ id: 'VALUE', name: 'TEXT' }]- type
stringa path to theObject Array(works with scopes) - type
Object Arrayfixed defined array
- type
dirplaceholder {String} optional, placeholder for j-Directorydirsearch {Boolean} optional, enables/disables search field in j-Directory (default: true)datasource {String} optional, a path to the data-source for config itemsDeclaration must be defined in the component's element body wrapped in the <script type="text/plain"> element. Example:
[
{
name: 'My group label',
type: 'group',
// summary: 'Lorem ipsum dolor, sit amet consectetur adipisicing elit. Numquam, nostrum.',
// icon: 'ti ti-home'
},
{
id: 'name',
name: 'Application name',
type: 'string',
icon: 'ti ti-home',
disable: 'model => model.interval < 100',
summary: 'Lorem, ipsum dolor sit amet consectetur, adipisicing elit. Iste eos, illum voluptas assumenda sunt possimus necessitatibus nobis provident dicta deserunt.',
required: true
},
... other items
]



