ListingToolbar component
The ListingToolbar component implements a container for the listing-related elements such as paging, mass actions, filters, and bookmarks. It aggregates all elements that serve as tools and renders them at the top of the main table.
Options
Option
Description
Type
Default
stickyWhether the toolbar has a fixed position. When set to
true, elements like paging, filters, and table headers stay in the viewport's area, no matter where the scroll position is.BooleanfalsestickyClassA list of additional CSS classes added to the root node of the
.html template specified in StickyTmpl.{[name:string]: boolean}{'sticky-header': true}stickyTmplPath to the toolbar's template for the fixed position.
Stringui/grid/sticky/stickytemplatePath to the component's
.html template.Stringui/grid/toolbarExamples
Integration
In the following example, we group the following components:
- Bookmark
- ColumnsControls
- FilterSearch
- Filters
- Mass Actions
- Paging
<listingToolbar name="listing_top">
<settings>
<sticky>true</sticky>
</settings>
<bookmark name="bookmarks"/>
<columnsControls name="columns_controls"/>
<filterSearch name="fulltext"/>
<filters name="listing_filters">
...
</filters>
<massaction name="listing_massaction">
...
</massaction>
<paging name="listing_paging"/>
</listingToolbar>
Result
Source files
Extends UiCollection: