symfony / ux

Symfony UX initiative: a JavaScript ecosystem for Symfony
https://ux.symfony.com/
MIT License
787 stars 279 forks source link

[LiveComponent] support multidimensional checkboxes for LiveProps #1009

Open nicodemuz opened 1 year ago

nicodemuz commented 1 year ago

Is it possible to have mutlidimensional checkboxes when updating a LiveProp?

For example:

#[LiveProp(writable: true)]
public array $foodsByTable = [];
<input type="checkbox" data-model="foodsByTable[1][]" value="pizza">
<input type="checkbox" data-model="foodsByTable[1][]" value="tacos">
<input type="checkbox" data-model="foodsByTable[1][]" value="sushi">

<input type="checkbox" data-model="foodsByTable[2][]" value="pizza">
<input type="checkbox" data-model="foodsByTable[2][]" value="tacos">
<input type="checkbox" data-model="foodsByTable[2][]" value="sushi">
carsonbot commented 2 months ago

Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?

carsonbot commented 2 months ago

Just a quick reminder to make a comment on this. If I don't hear anything I'll close this.

carsonbot commented 1 month ago

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!