简体   繁体   中英

Is there a way to dynamically bind model values to a form in extJS 4.2?

我想在模型更新后立即更新表单值,extJS(4.2)是否提供一种开箱即用的实现方式(与angular一样)

If possible you should use ExtJS 5 as they have now added MVVM support (read more here => http://docs.sencha.com/extjs/5.1/whats_new/5.0/whats_new.html#New_Application_Architectures___Welcome_MVVM )

So this would give you the two way data binding behaviour that AngularJS provides.

If you have to stick with using ExtJS 4 then you could listen for the store's update event and then in the listener handler call loadRecord() on your form passing in the model instance that has been updated

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM