X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/src/util/History.js diff --git a/src/util/History.js b/src/util/History.js index f06d1cd3..cfbdedaa 100644 --- a/src/util/History.js +++ b/src/util/History.js @@ -1,9 +1,27 @@ /** * @class Ext.util.History - * History management component that allows you to register arbitrary tokens that signify application - * history state on navigation actions. You can then handle the history {@link #change} event in order - * to reset your application UI to the appropriate state when the user navigates forward or backward through - * the browser history stack. + +History management component that allows you to register arbitrary tokens that signify application +history state on navigation actions. You can then handle the history {@link #change} event in order +to reset your application UI to the appropriate state when the user navigates forward or backward through +the browser history stack. + +__Initializing__ +The {@link #init} method of the History object must be called before using History. This sets up the internal +state and must be the first thing called before using History. + +__Setup__ +The History objects requires elements on the page to keep track of the browser history. For older versions of IE, +an IFrame is required to do the tracking. For other browsers, a hidden field can be used. The history objects expects +these to be on the page before the {@link #init} method is called. The following markup is suggested in order +to support all browsers: + +
+ + +
+ + * @markdown * @singleton */ Ext.define('Ext.util.History', {