PageNavigationHandler
Kind: global class
new PageNavigationHandler(window)
Param | Type | Description |
---|---|---|
window | Window |
The utility for manipulating the global context and global client-side-specific APIs. |
pageNavigationHandler._window : ima.core.window.Window
The utility for manipulating the global context and global client-side-specific APIs.
Kind: instance property of PageNavigationHandler
pageNavigationHandler.init()
Kind: instance method of PageNavigationHandler
pageNavigationHandler.handlePreManagedState()
Kind: instance method of PageNavigationHandler
pageNavigationHandler.handlePostManagedState()
Kind: instance method of PageNavigationHandler
pageNavigationHandler._saveScrollHistory()
Save user’s scroll state to history.
Replace scroll values in current state for actual scroll values in document.
Kind: instance method of PageNavigationHandler
pageNavigationHandler._scrollTo(scroll)
Scrolls to give coordinates on a page.
Kind: instance method of PageNavigationHandler
Param | Type |
---|---|
scroll | Object |
[scroll.x] | number |
[scroll.y] | number |
pageNavigationHandler._setAddressBar(url, isRedirection)
Sets the provided URL to the browser’s address bar by pushing or replacing a new state to the history.
The state object pushed to or replaced in the history will be an object with the
following structure: {url: string
}. The url
field will
be set to the provided URL.
Kind: instance method of PageNavigationHandler
Param | Type | Description |
---|---|---|
url | string |
The URL. |
isRedirection | boolean |
If replaceState should be used instead of pushState. |