TableControlBar
The TableControlBar
component is meant to be rendered within a DataTableContext
(provided by DataTable
here). The context provides necessary information
to the control bar, such as the filters and filter state, the selection state of the table, as well as any bulk actions.
It always shows the SmartStatus
component. If applicable, it displays the DropdownFilters
component, the BulkActions
component.
Basic usage
Any Paragon component or export may be added to the code example.
TableControlBar Subcomponents
These components are used by the TableControlBar
but can also be used individually as children of DataTable
.
Theme Variables#
CSS Variable | Computed Value |
---|---|
| |
| |
| |
| |
| |
Props API#
- className
string
DefaultnullSpecifies class name to append to the base element
- className
string
Defaultnullclass names for the div wrapping the button components
- classNameDefaultnull
string
- buttonClassNameDefault'pgn__smart-status-button'
string
- variantDefault'link'
string
- sizeDefault'inline'
string
- clearFiltersText
element
|string
- showFilteredFieldsDefaulttrue
bool
- className
string
A class name to append to the base element
- clearSelectionText
string
|element
A text that appears on the
Clear selection
button, defaults to 'Clear Selection'
- className
string
Specifies class name to append to the base element.
- statusText
string
|element
A text describing how many rows is shown in the table.