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

This element's route calculated from the parent FnxRouterBehavior.

route → String
read / write

Relative route provided from mark-up

routerParams → List<String>
read / write

Current router parameters

routeVisible → 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. Calling this method will change window.location.href accordingly.

Programmatically change current location (route) so that the specified child element of this element is visible. Calling this method will change window.location.href accordingly.

Programmatically change current location (route) so that the element in argument becomes visible. Call this method will change window.location.href accordingly.

Programmatically change current location (route) so that the specified sibling of this element is visible. Calling this method will change window.location.href accordingly.

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

Implement this callback in your element.