Browsing History with ExtJS MVC

I am looking for an ExtJs MVC example that supports browser history. The example they have on the Sencha site here is not based on MVC.

The other one found here uses dynamically loaded views and a controller. I believe that the solution is a combination of two approaches. I wonder if anyone has a ready-made example that I can reference?

0
source share
1 answer

I managed to put together an example by combining the approaches from the above links. Here is jsfiddle with ext js script: http://jsfiddle.net/chetanbaheti/zGXr6/3/

There are 2 types (tabs) - home and suppliers with corresponding history tokens

DemoApp.view.HomeTab
DemoApp.view.ProvidersTab

, .

DemoApp.controller.HomeController
//and its history token
this.uiToken = 'MainTabPanel,HomeTab';

ui :

initializeHistoryHandling
setUiState

( ) :

DemoApp.controller.ViewportController:onTabpanelTabChange

ui URL- .

0

All Articles