Changes from V3:
Creates a placeholder column which will reserve the space for the column, this can be used when multiple tables have similar data and we want to keep the size consistent.
Customize how the table is rendered, for example by adding sorting or stickiness.
Add interactivity in sorting columns. When this attribute is provided and sorting is enabled, columns will be sortable by clicking the headers.
Sort a column. You can get an initial state with init or initDescending.
If you make this sorting interactive, you should store the state in your model
and provide it to this function instead of recreating it on every update.
Make the header sticky (that is, it will stick to the top of the viewport when it otherwise would have been scrolled off.) You probably will want to set a background color on the header as well.
Disable alternatingRowColors
Does the same thing as stickyHeader, but with adaptations for your
specific use.
How the header will be set up to be sticky.
topOffset controls how far off the top of the viewport the headers will
stick, in pixels. (Default value: 0)zIndex controls where in the stacking context the header will end
up. Useful to prevent elements in rows from appearing over the header.
(Default value: 0)Headers are never sticky on mobile-sized viewports because doing so causes some accessibility issues with zooming and panning.
Create a sorter function that always orders the entries in the same order. For example, this is useful when we want to resolve ties and sort the tied entries by name, no matter of the sort direction set on the table.
Create a simple sorter function that orders entries by mapping a function over the collection. It will also reverse it when the sort direction is descending.