class WebHashNavigationController
A class that manages the application navigation path using the DOM location ‘hash’ value.
class WebHashNavigationController extends NavigationController
Notes
- This class is used automatically when WebContextOptions.useHistoryAPI is set to false.
Instance Members
- getPathHref(target?)Converts the specified navigation target into a valid
href
value. - navigateAsync(target, mode?)Navigates to the specified path.
- update()Updates the navigation path from the current location hash value.
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.