For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

API code

ff-navigation

Properties

Properties
Name
Description

layout (String, default: "horizontal")

Layout direction: "vertical" or "horizontal".

flyout (String, default: "true")

Expands sub-elements outside their parent.

mobile (String, default: "false")

Shows mobile navigation behavior.

fetch-initial (String, default: "true")

Requests navigation data when first attached to the DOM.

first-fetch (Number, default: 2)

Navigation levels requested during initial loading.

fetch-size (Number, default: 1)

Levels requested by subsequent fetches.

max-fetch (Number, default: 10)

Maximum navigation depth to load.

fetch-time (Number, default: 100)

Delay between navigation requests, in milliseconds.

subscribe (String, default: "true")

Subscribes to FactFinder navigation data.

navigationData (Array)

Navigation data used to render the element.

Methods

Methods
Name
Description

fetch()

Fetches navigation data before initialization.

updateLayout()

Recalculates child directions for the configured layout.

Events

Events
Name
Description

dom-updated

Fires after the element receives data and renders its templates.

ff-navigation-item

Properties

Properties
Name
Description

element (Object)

Category data from the navigation tree.

direction (String, default: "right")

Expansion direction: "left", "right", or "down".

cluster-level (Number, default: 0)

Internal level value used for placement and styling.

type (String, default: "default")

Template type: "default", "header", "parent", or "level".

has-subelements (Boolean, default: false)

Indicates whether the item has child elements.

flyout (String, default: "true")

Expands child elements outside or inside the parent.

selected (Boolean, default: false)

Indicates the selected item in mobile mode.

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?