docs: getting there
This commit is contained in:
parent
34f76578d6
commit
ff05b0f74c
17 changed files with 729 additions and 759 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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'},
|
||||
|
||||
|
|
|
|||
|
|
@ -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'},
|
||||
|
||||
|
|
|
|||
|
|
@ -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'},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue