TableControlBar
Leave feedbackThe 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 (SCSS)#
$data-table-background-color: $white !default;$data-table-border: 1px solid $gray-200 !default;$data-table-box-shadow: $box-shadow-sm !default;$data-table-padding-x: .75rem !default;$data-table-padding-y: .75rem !default;$data-table-padding-small: .5rem !default;$data-table-cell-padding: .5rem .75rem !default;$data-table-footer-position: center !default;$data-table-pagination-dropdown-max-height: 60vh !default;$data-table-pagination-dropdown-min-width: 6rem !default;$data-table-layout-sidebar-width: 12rem !default;
Props API#
- className
stringDefaultnullSpecifies class name to append to the base element
- className
stringDefaultnullclass 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
stringA class name to append to the base element
- clearSelectionText
string|elementA text that appears on the
Clear selectionbutton, defaults to 'Clear Selection'
- className
stringSpecifies class name to append to the base element.
- statusText
string|elementA text describing how many rows is shown in the table.