yacc143
Mmarimo
•Created by yacc143 on 1/17/2025 in #help-support
Why do mo.ui.batch & mo.ui.array clone their contained elements?
I'm asking as this obviously breaks code where the
on_changed
callback has a reference to the element it needs to change -> oops the element was cloned and the parameter that was used to create it, is actually meaning less.
I guess the whole notation is meant to have an on_change
handler on the parent (batch/array) even if it makes more sense, design wise to do it at a row level (as the rows represent objects, so interacting with UIElements in one row will basically change the status of the object represented by the row)3 replies