class WebHistoryNavigationController
A class that manages the application navigation path using the DOM history API.
class WebHistoryNavigationController extends NavigationController
Notes
- This class is used automatically when WebContextOptions.useHistoryAPI is set to true.
Instance Members
- getPathHref(target?)Converts the specified path into a valid
href
value. - navigateAsync(target, mode?)Navigates to the specified path.
- update()Updates the navigation path from the current window location.
Inherited Members
- pageIdThe current page location, read-only.
- detailThe current location detail.
- set(pageId, detail?)Sets the current location.
- clear()Resets the current location without navigating.
- emit(event)Emits an event, immediately calling all event handlers.
- emitChange(name?, data?)Emits a change event, an instance of ManagedChangeEvent.
- listen(handler)Adds a handler for all events emitted by this object.
- isUnlinked()Returns true if the object has been unlinked.
- unlink()Unlinks this managed object.
- beforeUnlink() protectedA method that’s called immediately before unlinking an object, can be overridden.
- attach(target, observer?) protectedAttaches the provided managed object to this object.
- autoAttach(propertyName, observer?) protectedObserves a property, so that any object assigned to it is attached immediately.
Related
- function useWebContext(config?)Clears the current global app context and initializes a web context.