track

remember the currently open tab to show it after page refresh

void track(string view,string url);

Deprecated

Will be removed in Webix 7.0

Parameters

viewstringID of the switching control (tabbar, segmented) or tabview ID.
urlstringhashbang url loaded after refresh. If not stated, the last opened tab URL is loaded.

Example

webix.history.track("tabbar");

Details

Each time you click the tab to switch for another cell, a hashbang URL is generated on the base of cell ID (under http://current_url.html#!/cellID pattern) and memorized. You'll see them in the address bar of your browser.

Disabling history tracking

You can disable current history tracking process by calling the method again in some moment:

webix.history.track("tabbar");
..
//disables history tracking for tabbar
webix.history.track();

In addition, you can set another view as a history tracking master:

webix.history.track("tabbar1");
..
//disables history tracking for tabbar1 and starts tracking tabbar2 tabs
webix.history.track("tabbar2");
See also
Back to top