You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be nice if we had an additional data-attribute to set the value of a prop from elements like . In my specific case, i tried to create a pagination and want to update the prop "page".
Im thinking of something like the data-model attribute --> data-value for example.
…itDE)
This PR was merged into the 2.x branch.
Discussion
----------
[LiveComponent] consider data-value attribute
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| Tickets | #195
| License | MIT
Allow to set the value using data-value. This can be handy if the model is updated from an \<a\> or \<button\> to set it to a fixed value for example.
Commits
-------
0ae0593 consider data-value attribute
Hey everyone !
I think it would be nice if we had an additional data-attribute to set the value of a prop from elements like . In my specific case, i tried to create a pagination and want to update the prop "page".
Im thinking of something like the data-model attribute --> data-value for example.
The result could be something like this
<a class="page-link" data-action="live#update" data-model="page" data-value="{{ page }}">{{ page }}</a>
The text was updated successfully, but these errors were encountered: