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

Paging Dropdown

Display search-result pagination in customizable dropdowns.

Documentation

The ff-paging-dropdown acts like the ff-paging element, but is displayed as a dropdown.

Use {{caption}} to access a paging item's value.

Configure the number of available dropdown pages in FactFinder UI → Basic Settings → Result listing → Paging (Number of Links).

<ff-paging-dropdown>
    <ff-paging-item>{{caption}}</ff-paging-item>
</ff-paging-dropdown>

show-selected

When the attribute show-selected is set on the ff-paging-dropdown, the dropdown contains the currently selected element.

<ff-paging-dropdown show-selected>
    <ff-paging-item>{{caption}}</ff-paging-item>
</ff-paging-dropdown>

paging-item

Unlike ff-paging, ff-paging-dropdown accepts only one ff-paging-item. It is the template for every generated page.

<ff-paging-dropdown show-selected>
    <ff-paging-item>{{caption}}</ff-paging-item>
</ff-paging-dropdown>

Rendered HTML

When set up like in the example above, the rendered HTML could look like this.

ff-paging-select

If you wish to use a native HTML select to render paging dropdown, you can use ff-paging-select element.

It works without custom templates. You can also define your own select or option.

The most basic setup:

Will act like:

Demo

API code

ff-paging-dropdown

Properties

Properties
Name
Description

items (Object) (default: empty)

The paging data from FactFinder. Set it through JavaScript only.

show-selected (Boolean)

Shows the currently selected paging element in the dropdown container.

collapse-onblur (Boolean)

Automatically closes the element when it loses focus.

opened (Boolean) (default: false)

Indicates whether the element is opened by default.

Methods

Methods
Name
Description

show()

Opens the dropdown element.

hide()

Closes the dropdown element.

toggle(collapse?: Boolean)

Opens or closes the element based on its current state.

Events

Events
Name
Description

dom-updated

Triggered when the element receives new data and templates render.

ff-paging-select

Properties

Properties
Name
Description

pagingData (Object) (default: undefined)

The paging data from FactFinder. Set it through JavaScript only.

Events

Events
Name
Description

dom-updated

Triggered when the element receives new data and templates render.

You may customize only the select element:

Or just the option:

Or both of them:

Rendered HTML

Assuming FactFinder displays five links, the last example produces:

Last updated

Was this helpful?