docs: missing items in widgets ref
This commit is contained in:
parent
61898182df
commit
c73d982639
6 changed files with 40 additions and 9 deletions
|
|
@ -24,7 +24,10 @@ module.exports = class Modal extends Panel {
|
|||
_chidlren:'children',
|
||||
|
||||
variables: {type: '*', value: '@{parent.variables}', help: 'Defines one or more arbitrary variables that can be inherited by children widgets'},
|
||||
widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object'}
|
||||
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'
|
||||
]},
|
||||
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,12 @@ module.exports = class Strip extends Panel {
|
|||
_children:'children',
|
||||
|
||||
variables: {type: '*', value: '@{parent.variables}', help: 'Defines one or more arbitrary variables that can be inherited by children widgets'},
|
||||
widgets: {type: 'array', value: [], help: 'Each element of the array must be a widget object'}
|
||||
widgets: {type: 'array', value: [], help: [
|
||||
'Each element of the array must be a widget object',
|
||||
'- By default, children widgets that don\'t have an explicit `width`/`height` set will be shrinked to respect the sizes specified by others',
|
||||
'- Adding `flex:1;` to a children\'s `css` will give it the ability the fill the remaining space',
|
||||
'- Multiple children can have a `flex:x;` css property (`x` will ponderate their expansion)'
|
||||
]}
|
||||
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,25 @@ class Gyroscope extends Widget {
|
|||
compass: {type: 'boolean', value: false, help: 'Set to `true` to return the orientation values with respect to the actual north direction of the world instead of the head direction of the device'},
|
||||
screenAdjusted: {type: 'boolean', value: false, help: 'Set to `true` to return screen adjusted values'}
|
||||
|
||||
}, [], {
|
||||
|
||||
value: {type: 'object', value: '', help: [
|
||||
'The gyroscope\'s value is an object containing multiple values, which can be used by other widgets via the property maths syntax',
|
||||
'- `value.do.alpha`: deviceorientation event alpha',
|
||||
'- `value.do.beta`: deviceorientation event beta',
|
||||
'- `value.do.gamma`: deviceorientation event gamma',
|
||||
'- `value.do.absolute`: deviceorientation event absolute',
|
||||
'- `value.dm.x`: devicemotion event acceleration x',
|
||||
'- `value.dm.y`: devicemotion event acceleration y',
|
||||
'- `value.dm.z`: devicemotion event acceleration z',
|
||||
'- `value.dm.gx`: devicemotion event accelerationIncludingGravity x',
|
||||
'- `value.dm.gy`: devicemotion event accelerationIncludingGravity y',
|
||||
'- `value.dm.gz`: devicemotion event accelerationIncludingGravity z',
|
||||
'- `value.dm.alpha`: devicemotion event rotationRate alpha',
|
||||
'- `value.dm.beta`: devicemotion event rotationRate beta',
|
||||
'- `value.dm.gamma`: devicemotion event rotationRate gamma'
|
||||
]},
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,6 +32,11 @@ module.exports = class Keyboard extends _matrix_base {
|
|||
'`false`: it will be prepended to the widget\'s preArgs',
|
||||
'`string`: will be used to define the widgets\' addresses, replacing dollar signs (`$`) with their respective index (to insert the actual dollar sign, it must be escaped with a backslash (`\\$`))'
|
||||
]},
|
||||
css: {type: 'string', value: '', help: [
|
||||
'Available CSS variables:',
|
||||
'- `--color-white:color;` (white keys color)',
|
||||
'- `--color-black:color;` (black keys color)'
|
||||
]}
|
||||
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -18,12 +18,10 @@ module.exports = class Crossfader extends Switcher {
|
|||
'- `String`: a widget\'s `id` whose state changes will be stored',
|
||||
'- `Array`: a list of widget `id` string'
|
||||
]},
|
||||
horizontal: {type: 'boolean', value: false, help: 'Set to `true` to display values horizontally'},
|
||||
values: {type: 'array|object', value: {'Value 1':1,'Value 2':2}, help: [
|
||||
'`Array` of possible values to switch between : `[1,2,3]`',
|
||||
'`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won\'t be kept',
|
||||
]}
|
||||
horizontal: {type: 'boolean', value: false, help: 'Set to `true` to display values horizontally'}
|
||||
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
constructor(options) {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,9 @@ module.exports = class Switcher extends _switchers_base {
|
|||
]},
|
||||
horizontal: {type: 'boolean', value: false, help: 'Set to `true` to display values horizontally'},
|
||||
values: {type: 'array|object', value: {'Value 1':1,'Value 2':2}, help: [
|
||||
'`Array` of possible values to switch between : `[1,2,3]`',
|
||||
'`Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won\'t be kept',
|
||||
'Each item represents a bank that stores the values from the widgets listed in `linkedWidgets`',
|
||||
'- `Array` of possible values to switch between : `[1,2,3]`',
|
||||
'- `Object` of `"label":value` pairs. Numeric labels must be prepended or appended with a white space (or any other non-numeric character) otherwise the order of the values won\'t be kept',
|
||||
]}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue