JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › Smart.App data binding regression in 4.2 vs 4.1
Tagged: framework
- This topic has 8 replies, 2 voices, and was last updated 4 years ago by
admin.
-
AuthorPosts
-
August 27, 2019 at 5:07 am #100238
admin
KeymasterHi,
https://codepen.io/cetinsert/pen/jONmPNQ?editors=1011- app.data.details field value types are in 4.2 object-ified char/string arrays vs 4.1 strings
- app.data.details fields 4.2 cannot be assigned to update the view in real-time; 4.1 can
Please review – this might affect simpler data bindings too.
Thanks,
Cetin- fixed link
August 27, 2019 at 5:39 am #100244admin
KeymasterHi Cetin,
app.data is an Object. This is not a regression. It is by design. If you want to set the data, you will need to set the entire object.
Regards,
George
Smart HTML Elements
https://www.htmlelements.comAugust 27, 2019 at 5:48 am #100245admin
KeymasterAugust 27, 2019 at 5:58 am #100246admin
KeymasterI honestly found it was truly magical that I could just assign to arbitrarily nested app.data subfields and the view would just update live before my eyes.
That was something no other framework has.
If this sudden change is not for a deep technical reason, I would like to kindly ask the person/team behind the data binding feature to reconsider adding support for this back.August 27, 2019 at 6:07 am #100248admin
Keymaster( https://www.htmlelements.com/docs/view-model-binding/ has sections about grid stack layout at the end of the page. )
August 27, 2019 at 6:17 am #100251admin
KeymasterAugust 27, 2019 at 6:45 am #100252admin
KeymasterOh, I am infinitely delighted to hear that!
I have an app that is now stuck at 4.1 due to this.
<hr />
https://codepen.io/cetinsert/pen/jONmPNQ?editors=1011 has just been updated with
notes on the 4.2 regressions (version 3.1 through 4.2, marked !!) of- behavior – marked 0, 2, 4
- data type – marked T
Thank you!
August 28, 2019 at 8:26 am #100257admin
KeymasterHi Cetin,
The old behavior of the ‘data’ object is now available again. The behavior introduced in 4.2.0 is available through the jsonData property of Smart.App. We introduced also a new property formData which is useful for Posting Forms.
Regards,
George
Smart HTML Elements
https://www.htmlelements.comAugust 28, 2019 at 3:59 pm #100262 -
AuthorPosts
- You must be logged in to reply to this topic.