NEWS.md
This release upgrades to a new major version of React Table (#35), which introduces many new features, improvements, and bug fixes. Backward compatibility was kept where possible, but note that there are several breaking changes.
rowInfo.expanded
and cellInfo.expanded
indicating whether the row is expandedcellInfo.selected
property indicating whether the cell’s row is selectedstate.page
, state.pageSize
, and state.pages
for the current page index, page size, and number of pages in the tablestate
argument (#88).state
argument.reactable(paginateSubRows = FALSE)
to exclude sub rows from pagination like before.groupBy
and row details columns (#71).columnGroups
and groupBy
arguments are provided, groupBy
columns are no longer added to a column group automatically (#87).defaultGroupHeader
argument in reactableLang()
is now deprecated and no longer used. Use the columnGroups
argument in reactable()
to customize the column group header for groupBy
columns.state.expanded
property has been removed from JavaScript render functions and style functions. To check whether a row is expanded, use rowInfo.expanded
instead.rowInfo.page
and cellInfo.page
properties have been removed from JavaScript render functions and style functions. To get the current page index of the table, use state.page
instead.show = FALSE
as a default value in defaultColDef()
now works (@csgillespie, #105).pageSizeOptions
in reactable()
now works.reactable()
, defaultExpanded = TRUE
now expands all rows in the table, not just rows on the first page.reactable()
, defaultExpanded = TRUE
now works when column groups are present.groupBy
columns, aggregate functions could take aggregated values which could produce inaccurate calculations (e.g., when calculating the mean of values).aria-expanded
attribute to indicate expanded or collapsed state. The default label for row expand buttons is now “Toggle details” instead of “Expand details” or “Collapse details”.reactableLang()
gains the groupExpandLabel
and groupCollapseLabel
arguments to customize the accessible labels for row group expand buttons.updateReactable()
gains a data
argument to update the data of a reactable instance in Shiny (#49).defaultSelected
now works correctly with Crosstalk linked selection.SharedData
objects with zero or one rows.colFormat()
now always formats numbers as a localized string when locales
is specified.reactableTheme(tableBodyStyle = list(flex = "auto"))
.reactable()
now supports linked selection and filtering with Crosstalk-compatible HTML widgets (#46).reactable()
gains a theme
argument to customize the default styling of a table.reactable()
gains a language
argument to customize the language strings in a table (#24).reactable()
gains a defaultSelected
argument to set default selected rows.reactable()
gains a defaultExpanded
argument to set default expanded rows (#23).updateReactable()
function to update the selected rows, expanded rows, or current page of a reactable instance in Shiny (#20).getReactableState()
function to get the state of a reactable instance in Shiny (#20).colDef()
gains a "median"
aggregate function to calculate the median of numbers (#30).".selection"
as the column name (#19).reactable()
, the rowClass
, rowStyle
, and details
JavaScript functions now receive a rowInfo.selected
property indicating whether the row is selected (#20).selectionId
argument in reactable()
will be deprecated in a future release. Use getReactableState()
to get the selected rows of a table in Shiny instead.colFormat(date = TRUE)
now formats YYYY-MM-DD
dates correctly (#38).colFormat(percent = TRUE)
now works correctly when viewing tables in IE11.colDef()
, the class
and style
R functions now handle list-columns correctly.