Set default selected #337
-
Hi there, Does anyone know the way to set the default selected items for the table? I can set it by passing the parameter selected to the component
But the check action on the row will not work, it always use the default selected ([1,2,3]) Thanks a lot |
Beta Was this translation helpful? Give feedback.
Answered by
rappasoft
Jun 11, 2021
Replies: 1 comment 3 replies
-
You should be able to set default selected right on the table class: public array $selected = [1,2,3]; Where 1,2,3 are the keys of the rows. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
tuluong-vl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should be able to set default selected right on the table class:
Where 1,2,3 are the keys of the rows.