docs: add tab & root, fix default value display

This commit is contained in:
bordun 2020-01-31 14:18:42 +01:00
parent 4b15bcf1c6
commit 23a607ef93
4 changed files with 78 additions and 27 deletions

View file

@ -7,6 +7,12 @@ var Panel = require('./panel'),
class Root extends Panel {
static description() {
return 'Main (unique) container'
}
static defaults() {
return Widget.defaults({}, ['label', '_geometry', 'left', 'top', 'width', 'height'], {

View file

@ -4,14 +4,19 @@ var Panel = require('./panel'),
module.exports = class Tab extends Panel {
static description() {
return 'Tabbed panel widget'
}
static defaults() {
return Widget.defaults({
_tab:'tab',
detached: {type: 'boolean', value: true, help: [
]}
detached: {type: 'boolean', value: true, help: 'Set to `false` if the tab contains `frame` widgets that should not be reloaded when the tab open '}
}, ['_geometry', 'left', 'top', 'width', 'height'], {