Members
# static constant classNames
An object containing the classnames generated from the stylesheet made with emotion and using the style state of the store
Methods
# static exports.TableHeading() → {React.ReactElement}
The TableHeading component, display the column headers cells, each one containing a button to activate sort function.
There is a sorting icon to inform the user on wich column and which direction is currently used for sorting.
Use aria attributes to inform screen reader user as well on current sort.
set a minimum column width to avoid the column width variation depending on currently displayed results (if not, column widths change on each page change or filter update).
jsx to be injected in the html.
React.ReactElement
# static handleClick(item)
Dispatch the heading being selected by user to set a new sort.
Parameters:
Name | Type | Description |
---|---|---|
item |
object | the heading element of the headings array corresponding to the header column being clicked. |