Routing behavior for Polymer elements.

Use this to enable routing on your elements.

Implemented by
Annotations
  • behavior

Properties

absoluteParentRoute → String
read / write

Absolute route of parent

absoluteRoute → String
read / write

Absolute route calculated from parent

read / write

route → String
read / write

Relative route provided from mark-up

routerParams → List<String>
read / write

Current router parameters

routerVisible → bool
read / write

Current state of element

Constructors

FnxRouterBehavior()

Methods

attached() → void

Polymer lifecycle callback.

catchRouteChangeEvents(Event e, detail) → void

Listening for user interaction.

Programmatically change current location (route) to any absolute path.

Programmatically change current location (route) so that specified child element of this element is visible.

Programmatically change current location (route) so the 'element' in argument is visible.

Programmatically change current location (route) so that specified sibling of this element is visible.

routeChanged(bool visible, List<String> params) → void

Implement this callback in your element.