I have inserted the <b-form-checkbox>
element into a <b-table>
:
https://jsfiddle.net/fmattioni/L269rd7s/
This is my current objective:
1 - Initially, all checkboxes in the table are checked using checked="true"
.
2 - Try unchecking any checkbox as an example.
3 - Change the date on the calendar now.
4 - The issue arises here: after changing the date, I want all checkboxes to revert to their initial states, with all of them being checked.
I am looking to accomplish this through one of the following methods:
- Option #1 - Is it possible to define within my data
items
whether a column should be checked or not? I attempted the following:
items: [
{id: 1, check: true,},
{id: 2, check: true,},
{id: 3, check: true,},
]
However, I haven't figured out how to instruct <b-form-checkbox>
to do so. For instance, I would like to set id: 2
initially as check: false
, and the others as check: true
. Is this achievable?
- Option #2 - It would suffice if I could simply reset all values to
true
once the date changes.
Any suggestions or solutions for this scenario?