Controlling the Web

Well here's a thing, this view has no corresponding view controller! In previous versions of Ext JS, we'd be listening for change events on the date fields and combo box, then grabbing the changed value and reloading the store with it.

In the brave new world of view models though, we don't need to do this. When a date field updates, it automatically updates the corresponding view model value, which in turn updates the store's filter.

We're already setting up the stores and the form components, so by adding an extra sprinkle of magic in the form of bind configurations, Ext JS will power all of this for us. This means less custom code for us to write, which can only be a good thing!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset