docs: add tab & root, fix default value display
This commit is contained in:
parent
4df408c74e
commit
c7f6965c72
4 changed files with 78 additions and 27 deletions
|
|
@ -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'], {
|
||||
|
|
|
|||
|
|
@ -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'], {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue