class WebNavigationContext
A class that manages the application navigation path using DOM methods.
class WebNavigationContext extends NavigationContext;
Notes
- This class is created automatically by useWebContext(). You shouldn’t need to interact with it directly.
Instance members
getPathHref()
Converts the specified path into a validhrefvalue.navigateAsync()
Navigates to the specified path.update()
Updates the navigation path from the current window location.
Inherited members
path
The current navigation path, read-only.set()
Sets the current navigation path.resolve()
Resolves a relative path against the current navigation path.clear()
Resets the current path silently without activating or deactivating any activities.emit()
Emits an event, immediately calling all event handlers.emitChange()
Emits a change event.listen()
Adds a handler for all events emitted by this object.listenOnce()
Returns a promise for a single event with the provided name.listenAsync()
Adds a handler for all events emitted by this object, and returns an async iterable.observe()
Observes a property, a bound property from an attached parent, or an observable object.observeAsync()
Observes one or more targets asynchronously, batching or debouncing/throttling updates.attach() protected
Attaches the specified observable object to this object.isUnlinked()
Returns true if the object has been unlinked.unlink()
Unlinks this observable object.beforeUnlink() protected
A method that’s called immediately before unlinking an object, can be overridden.
Related
function useWebContext()
Initializes the web application context with renderer, viewport, and navigation.
