docs: getting there

This commit is contained in:
bordun 2020-04-08 15:58:03 +02:00
parent 3c101c774d
commit fcc850df5e
17 changed files with 729 additions and 759 deletions

View file

@ -148,7 +148,8 @@ class Widget extends EventEmitter {
for (var m in push) {
if (!alterDefaults[m]) alterDefaults[m] = []
Object.assign(alterDefaults[m], push[m])
if (typeof push[m] === 'string') alterDefaults[m] = push[m]
else Object.assign(alterDefaults[m], push[m])
}
alterDefaults._props = function() {

View file

@ -35,6 +35,8 @@ class Modal extends Panel {
}, [], {
_children: 'children',
widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object'},
value: {type: 'integer', value: '', help: [
'Defines the modal\'s state:`0` for closed, `1` for opened'

View file

@ -30,6 +30,8 @@ class Panel extends Container() {
}, [], {
_children: 'children',
widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously.'},
tabs: {type: 'array', value: [], help: 'Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously'},

View file

@ -32,6 +32,8 @@ class Root extends StaticProperties(Panel, {visible: true, label: false, id: 'ro
'colorFill', 'colorStroke', 'alphaStroke', 'alphaFillOff',
], {
_children: 'children',
widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously.'},
tabs: {type: 'array', value: [], help: 'Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously'},

View file

@ -31,6 +31,8 @@ module.exports = class Tab extends Panel {
'colorStroke', 'alphaStroke', 'alphaFillOff', 'alphaFillOn'
], {
_children: 'children',
widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object. A panel cannot contain widgets and tabs simultaneously.'},
tabs: {type: 'array', value: [], help: 'Each element of the array must be a tab object. A panel cannot contain widgets and tabs simultaneously'},