Checkbox handler #669
Answered
by
mstijak
BesnikMahmuti-Prosperoware
asked this question in
General
Checkbox handler
#669
-
Hi is there a way to get the selected checkbox record so that we know the object with the details of a selected or unselected checkbox, for example like we have onClick event for buttons. |
Beta Was this translation helpful? Give feedback.
Answered by
mstijak
Aug 12, 2020
Replies: 2 comments 2 replies
-
If checkboxes are rendered in a Repeater you can iterate the underlying array and filter out unchecked records. There is no callback at the moment, but we can add it if there is a valid use-case. |
Beta Was this translation helpful? Give feedback.
1 reply
-
You can access the store in the set handler. <Checkbox
value={{
bind: "$record.selected",
set: (value, { store }) => {
let record = store.get("$record"); //access to the record
store.set("$record.selected", value);
}
}}
>
Test
</Checkbox> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BesnikMahmuti-Prosperoware
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can access the store in the set handler.