Navigation
Render hierarchical FactFinder navigation.
Documentation
Using the Navigation
To start an ff-navigation, define at least one ff-navigation-item. This template renders every navigation element.
<ff-navigation>
<ff-navigation-item>
<div>{{name}}</div>
</ff-navigation-item>
</ff-navigation>Demo
Try the Navigation demo.
API code
ff-navigation
Properties
Methods
Events
ff-navigation-item
Properties
Navigation elements are categories in a tree. The item template can access name and recordCount.
Templates
Use type="header" for the first level. Use type="parent" for items with children. Use type="layerN" for a specific navigation level.
parent takes priority over a matching layer template. Elements with children receive has-subelements. Each item receives cluster-level.
Header template
Parent template
Layer template
Layouts
Use layout="vertical" or layout="horizontal". Give vertical navigation an explicit width.
Responsiveness
For responsive layouts, provide a slot="menu" element. Set mobile="true" in your resize logic. Use data-search on a child control to navigate through a parent item on touch devices.
Custom navigation data
Set subscribe="false" and assign an array to navigationData. Each item needs clusterLevel, name, and __SUB_ELEMENTS__ values.
Last updated
Was this helpful?