TableFooter
The TableFooter
component is meant to be rendered within a DataTableContext
(provided by DataTable
here).
By default, it shows how many items are being displayed on the left, pagination dropdown in the middle, and
navigation buttons on the right.
Alternately, it will accept children.
Basic Usage
Show editable code example
Any Paragon component or export may be added to the code example.
Rendering with override components
Show editable code example
Any Paragon component or export may be added to the code example.
Footer subcomponents
These components can be rendered independently of the TableFooter
component with a DataTableContext
: RowStatus
,
TablePagination
, TablePaginationMinimal
.
RowStatus
expects to receivepage
,rows
, anditemCount
fromDataTableContext
TablePagination
expects to receivepageCount
,state
, andgotoPage
fromDataTableContext
TablePaginationMinimal
expects to receivenextPage
,previousPage
,canPreviousPage
, andcanNextPage
fromDataTableContext
Theme Variables (SCSS)#
$data-table-background-color: $white !default;$data-table-border: 2px solid $light-300 !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#
RowStatus Props API
- 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.
TablePagination Props API
This component does not receive any props.
TablePaginationMinimal Props API
This component does not receive any props.
Usage Insights#
TableFooter
Project Name | Paragon Version | Instance Count | |
---|---|---|---|
frontend-app-course-authoring | 22.8.1 | 1 |