matrices: allow setting all of a matrice values at once
This commit is contained in:
parent
d53290984e
commit
c3070b3684
1 changed files with 7 additions and 0 deletions
|
|
@ -25,5 +25,12 @@ module.exports = class _matrices_base extends _widgets_base {
|
|||
|
||||
}
|
||||
|
||||
setValue(v, options={}) {
|
||||
if (v && v.length == this.value.length) {
|
||||
for (var i in v) {
|
||||
this.widget[0].children[i].abstract.setValue(v[i], options)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue