-
Notifications
You must be signed in to change notification settings - Fork 13
ViewController
Brian Kotek edited this page Aug 29, 2014
·
2 revisions
With Ext JS 5, Sencha included their own ViewController class. As a result, the Deft JS 5 Deft.mvc.ViewController now extends Sencha's Ext.app.ViewController. This means that obtaining references to view components and handling view events is now done using the Sencha implementation. The Ext JS 5 documentation includes sections on these topics.
The Deft ViewController does still provide some additional features:
- Automatically applies the
InjectableandObservermixins. - Allows overriding the
destroy()method. Returning false from this method will prevent theViewControllerand view from being destroyed.