@stenajs-webui/grid-export
Advanced tools
Changelog
14.2.0
hideYearPagination
prop to hide year pagination arrows.calendarProps
which will be passed along to the internal Calendar-component, and can be used to specify enabled dates and onDayClick
callback.HTMLTextAreaElement
through a generic element type.onChange
was called twice when pressing enter or the arrow keys.disableCloseOnClick
is no longer forwarded to the DOM.hoverIcon
and hoverColor
.ref
prop.display
prop so that you can e.g. display it inline.hoverIcon
and hoverColor
.Changelog
14.1.1
Changelog
14.1.0
bannerError
to StandardTable
props and is prioritized before error property if given. Error is now displayed in a ResultListBanner
.error
and errorLabel
are now displayed in a Banner
.onKeyDown
option.onKeyDown: (event, { item, columnId }) => {
if (event.key === " ") {
setActive(item, !item.active);
}
},
New column config: disableGridCellFocus
If this setting is enabled, the cell must add the focus highlight and onKeyDown on an element manually.
This makes it possible to let arrow navigation move focus to for example a checkbox in the cell, instead of the cell itself.
Adding this is easy, just spread requiredProps
from gridCell
into the HTML element.
active: createColumnConfig((item) => item.active, {
disableGridCellFocus: true,
renderCell: ({ item, gridCell: { requiredProps } }) => (
<Indent>
<Checkbox value={item.active} {...requiredProps} />
</Indent>
),
})
Changelog
14.0.1
Changelog
14.0.0
New implementation using react-modal
.
Drawer
has been moved from panels
to modal
.Drawer
prop zIndex
has been removed.Changelog
13.4.0
Disabled checkboxes are not checked when
A column config can now specify a summary cell at the bottom of the table.
summaryText: ({ items }) =>
String(sumBy(items, (item) => item.numPassengers ?? 0)),
renderSummaryCell: () => (
<Indent>
<Tag label={"Jedi knights"} />
</Indent>
)
See grid package README.md for more info.
Changelog
13.3.0
Changelog
13.2.0
NumericStepper
is a number input with step buttons on the sides:focus
with :focus-visible
, this makes the focus state visible only if the Collapsible
was opened with keyboard interaction.CollapsibleGroupHeading
.NumericInput
now caps typed-in values to min and max