Join Discord
Powered by
2 way data binding?!
# package-development
r
Richard Soeteman
03/28/2024, 11:03 AM
On custom dashboards , sections etc Is my assumption right you need to track all UI changes yourself (No 2 way databinding in the new backoffice)
w
Warren Buckley
03/28/2024, 11:12 AM
What's a simple example you are trying to do?
Warren Buckley
03/28/2024, 11:20 AM
If its a form input field updating a value/property then use a change event listener on the input field and then update your value.
https://lit.dev/playground/#sample=examples/properties-has-changed
r
Richard Soeteman
03/28/2024, 11:55 AM
That is using events right? Was hoping for something similiar we have now where you assign a model to a an element and model changes in form then the model is updated automatically... Looking at the source I think that is not possible
https://cdn.discordapp.com/attachments/1222863686780194948/1222876602288050226/image.png?ex=6617cf95&is=66055a95&hm=a40392b36ac67c399e4a93731c27aeaec42d36c92cd2520e97d739915612b16e&
Previous
Next