Show:

Module: router/backbone

router/backbone

Router adapter for the Backbone.js router

See:

Extends

Methods

modules/router/backbone.js, line 101

Delegates to the Backbone Router's navigate().

See:

runRoute(route){uijet}

modules/router/backbone.js, line 89

Executes a handler for a given route.

Name Type Description
route string

the route to execute.

See:

setRoute(widget, route, callback){uijet}

modules/router/backbone.js, line 31

Registers a route to be handled by a given Routed widget instance.

Related options:

  • route_name: Will be used for the route and route:name events triggered by the router and history. Defaults to the widget.id.
Name Type Description
widget Object

the widget instance that will intercept this route.

route string optional

the route to register to. Defaults to calling widget.getRoute().

callback string | function optional

key that maps to a method of the widget or the router, or a function, to use as callback for the route. Defaults to the widget's wake().

See:

unsetRoute(route){uijet}

modules/router/backbone.js, line 71

Removes a registered route.

Name Type Description
route string

a route that is registered on the router.

See: