matrices: append subwidgets indexes to preargs, not prepend
This commit is contained in:
parent
8d0465a2fa
commit
bf0a91cb72
5 changed files with 5 additions and 5 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
- widgets
|
||||
- `css` option now supports css selectors, scoped to the widgets element
|
||||
- `matrices` don't pass `css` option to their children anymore
|
||||
- `matrices` don't pass `css` option to their children anymore; subwidgets' indexes are now append to `preArgs` instead of being prepended.
|
||||
- misc
|
||||
- app's title uppercased
|
||||
- tabs titles' letter-spacing increased
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ module.exports = class Keyboard extends _matrices_base {
|
|||
data.id = widgetData.id + '/' + i
|
||||
data.label = false
|
||||
data.address = widgetData.split ? widgetData.address + '/' + i : widgetData.address
|
||||
data.preArgs = widgetData.split ? widgetData.preArgs : [i].concat(widgetData.preArgs)
|
||||
data.preArgs = widgetData.split ? widgetData.preArgs : [].concat(widgetData.preArgs, i)
|
||||
data.css = ''
|
||||
|
||||
var element = parsewidgets([data],this.widget)
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ module.exports = class Multifader extends _matrices_base {
|
|||
data.id = widgetData.id + '/' + i
|
||||
data.label = i
|
||||
data.address = widgetData.split ? widgetData.address + '/' + i : widgetData.address
|
||||
data.preArgs = widgetData.split ? widgetData.preArgs : [i].concat(widgetData.preArgs)
|
||||
data.preArgs = widgetData.split ? widgetData.preArgs : [].concat(widgetData.preArgs, i)
|
||||
data.color = typeof widgetData.color == 'object' ? '' + widgetData.color[i % widgetData.color.length] : widgetData.color
|
||||
data.css = ''
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ module.exports = class Multipush extends _matrices_base {
|
|||
data.id = widgetData.id + '/' + i
|
||||
data.label = i
|
||||
data.address = widgetData.split ? widgetData.address + '/' + i : widgetData.address
|
||||
data.preArgs = widgetData.split ? widgetData.preArgs : [i].concat(widgetData.preArgs)
|
||||
data.preArgs = widgetData.split ? widgetData.preArgs : [].concat(widgetData.preArgs, i)
|
||||
data.color = typeof widgetData.color == 'object' ? '' + widgetData.color[i % widgetData.color.length] : widgetData.color
|
||||
data.css = ''
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ module.exports = class Multitoggle extends _matrices_base {
|
|||
data.id = widgetData.id + '/' + i
|
||||
data.label = i
|
||||
data.address = widgetData.split ? widgetData.address + '/' + i : widgetData.address
|
||||
data.preArgs = widgetData.split ? widgetData.preArgs : [i].concat(widgetData.preArgs)
|
||||
data.preArgs = widgetData.split ? widgetData.preArgs : [].concat(widgetData.preArgs, i)
|
||||
data.color = typeof widgetData.color == 'object' ? '' + widgetData.color[i % widgetData.color.length] : widgetData.color
|
||||
data.css = ''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue