[ ]
Programmatically change current location (route) so the 'element' in argument is visible.
Element can be any HtmlElement, but it must be nested under FnxRouterBehavior element.
Source
/// Programmatically change current location (route) so the 'element' in argument is visible.
///
/// Element can be any HtmlElement, but it must be nested under FnxRouterBehavior element.
void navigateToElement(Element element, [List<String> params = null]) {
FnxRouterBehavior _router = findParentRouter(element);
if (_router == null) {
throw "Cannot navigate to $element, it has no FnxRouterBehavior parent";
}
navigateAbsolute(_router.absoluteRoute, params);
}