matrix: don't implicitely override children's label, do it explicitely in props' default

This commit is contained in:
jean-emmanuel 2024-11-12 13:22:04 +01:00
parent 6eb8b73c77
commit d00987402e
2 changed files with 4 additions and 2 deletions

View file

@ -6,6 +6,9 @@
- show 3-dots menu in read-only mode with access to allowed items (e.g fullscreen)
- hide console in read-only mode
- widgets
- matrix: don't implicitely override children's `label`, do it explicitely in `props`' default
## 1.27.1
- bug fixes

View file

@ -17,7 +17,7 @@ class Matrix extends Panel {
class_specific: {
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'},
props: {type: 'object', value: {}, editor: 'javascript', syntaxChecker: false, help: [
props: {type: 'object', value: {label: "#{$}"}, editor: 'javascript', syntaxChecker: false, help: [
'Defines a set of property to override the widgets\' defaults.',
'JS{} and #{} blocks in this field are resolved with an extra variable representing each widget\'s index: `$` (e.g. `#{$}`)',
'Advanced syntax blocks (@{}, OSC{}, JS{}, VAR{} and #{}) are resolved at the matrix\' scope (ie @{this.variables} returns the matrix\' variables property)',
@ -111,7 +111,6 @@ class Matrix extends Panel {
target: '@{parent.target}',
decimals: '@{parent.decimals}',
bypass: '@{parent.bypass}',
label: i,
top: 'auto',
left: 'auto',
height: 'auto',