The example shows how to keep the active tab of
Ext.tab.Panel and how to use method
getState to add new property to the existing state object. Window is also stateful.
Change the tab, move and resize the window and then reload the page.
Ext.state.CookieProviderto remember active panel in browser cookies
Ext.tab.Panelinside stateful window with standard stateful feature
- updates window state with
beforestatesavelistener to relative position
- remembers window height,width and pos with same
Use it anytime when you need save active panel (or some another property) as default value after refreshing page
Example Files (relative to example root)
The example has been initially generated with
sencha generate app so the following list contains only added or edited files:
index.html app.js app.json app/Application.js app/view/DemoTabPanelView.js