Show:

Mixin: Routed

Routed

Routed mixin class.

Extends

  • uijet.BaseWidget

Methods

destroy(){Routed}

mixins/Routed.js, line 52

Ensures registered routes are unregistered.

getRoute(){string}

mixins/Routed.js, line 158

Gets the current default route that's currently registered with this instance.

Returns:
default route that's currently registered with this instance.

register(){Routed}

mixins/Routed.js, line 65

Ensures routes get registered.

setRoute(route){Routed}

mixins/Routed.js, line 122

Unregisters current route and registers a new one, if route is provided. If route is falsy it defaults to the route_prefix and route_sufix uijet options surrounding this.id.

Name Type Description
route string optional

new route to register.

unregisterRoutes(){Routed}

mixins/Routed.js, line 101

Unregisters all routes.

Related options:

  • alias_routes: all aliases registered with this instance that will be unregistered.

unsetRoute(route){Routed}

mixins/Routed.js, line 146

Unregisters the route route or the current registered one (not aliases).

Name Type Description
route string optional

route to unregister.