Skip to content
Brian Kotek edited this page Aug 29, 2014 · 2 revisions

Back to Core Features

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 Injectable and Observer mixins.
  • Allows overriding the destroy() method. Returning false from this method will prevent the ViewController and view from being destroyed.

Next: Injecting Dependencies

Clone this wiki locally