widgets: some props cleanup

This commit is contained in:
bordun 2020-05-14 23:25:28 +02:00
parent f88c33bb03
commit d969f99ac5
3 changed files with 6 additions and 9 deletions

View file

@ -23,16 +23,13 @@ class Clone extends Container() {
_class_specific: 'clone',
widgetId: {type: 'string', value: '', help: '`id` of the widget to clone'},
_separator: 'overrides',
props: {type: 'object', value: {}, help: 'Cloned widget\'s properties to override'},
}, [
'colorText', 'colorWidget', 'colorFill', 'colorStroke', 'alphaStroke', 'alphaFillOff', 'alphaFillOn', 'padding',
'label', 'color', 'linkId',
'_value', 'default', 'value',
'_osc', 'decimals', 'address', 'preArgs', 'typeTags', 'target', 'bypass'
'label', 'color',
'_value', 'default', 'value', 'script', 'linkId',
'_osc', 'decimals', 'address', 'preArgs', 'typeTags', 'target', 'ignoreDefaults', 'bypass'
])
}

View file

@ -15,7 +15,7 @@ module.exports = class Keyboard extends Panel {
return Widget.defaults({
_class_specific: 'matrix',
_class_specific: 'keyboard',
keys: {type: 'number', value: 25, help: 'Defines the number keys'},
start: {type: 'number', value: 48, help: [
@ -33,7 +33,7 @@ module.exports = class Keyboard extends Panel {
]},
toggles: {type: 'boolean', value: false, help: 'Set to `true` to make keys bahave like toggle buttons'}
}, ['_value', 'default', 'value', 'linkId'], {
}, [], {
css: {type: 'string', value: '', help: [
'Available CSS variables:',

View file

@ -17,7 +17,7 @@ class Matrix extends StaticProperties(Panel, {scroll: false}) {
return Widget.defaults({
_class_specific: 'matrix: widgets',
_class_specific: 'matrix',
widgetType: {type: 'string', value: 'button', help: 'Defines the type of the widgets in the matrix'},
quantity: {type: 'number', value: 4, help: 'Defines the number of widgets in the matrix'},