Use reactableLang()
to customize the language strings in a table.
Language strings include both visible text and accessible labels that can
be read by assistive technology, such as screen readers.
To set the default language strings for all tables, use the global
reactable.language
option.
reactableLang(
sortLabel = "Sort {name}",
filterPlaceholder = "",
filterLabel = "Filter {name}",
searchPlaceholder = "Search",
searchLabel = "Search",
noData = "No rows found",
pageNext = "Next",
pagePrevious = "Previous",
pageNumbers = "{page} of {pages}",
pageInfo = "{rowStart}\u2013{rowEnd} of {rows} rows",
pageSizeOptions = "Show {rows}",
pageNextLabel = "Next page",
pagePreviousLabel = "Previous page",
pageNumberLabel = "Page {page}",
pageJumpLabel = "Go to page",
pageSizeOptionsLabel = "Rows per page",
groupExpandLabel = "Toggle group",
detailsExpandLabel = "Toggle details",
selectAllRowsLabel = "Select all rows",
selectAllSubRowsLabel = "Select all rows in group",
selectRowLabel = "Select row",
defaultGroupHeader = NULL,
detailsCollapseLabel = NULL,
deselectAllRowsLabel = NULL,
deselectAllSubRowsLabel = NULL,
deselectRowLabel = NULL
)
Accessible label for column sort buttons.
Takes a {name}
parameter for the column name.
Placeholder for column filter inputs.
Accessible label for column filter inputs.
Takes a {name}
parameter for the column name.
Placeholder for the table search input.
Accessible label for the table search input.
Placeholder text when the table has no data.
Text for the next page button.
Text for the previous page button.
Text for the page numbers info. Only used with the "jump"
and
"simple"
pagination types.
Takes the following parameters:
{page}
for the current page
{pages}
for the total number of pages
Text for the page info. Takes the following parameters:
{rowStart}
for the starting row of the page
{rowEnd}
for the ending row of the page
{rows}
for the total number of rows
Text for the page size options input.
Takes a {rows}
parameter for the page size options input.
Accessible label for the next page button.
Accessible label for the previous page button.
Accessible label for the page number buttons.
Only used with the the "numbers"
pagination type.
Takes a {page}
parameter for the page number.
Accessible label for the page jump input. Only used with
the "jump"
pagination type.
Accessible label for the page size options input.
Accessible label for the row group expand button.
Accessible label for the row details expand button.
Accessible label for the select all rows checkbox.
Accessible label for the select all sub rows checkbox.
Accessible label for the select row checkbox.
Deprecated and no longer used.
Deprecated and no longer used.
Deprecated and no longer used.
Deprecated and no longer used.
Deprecated and no longer used.
A language options object that can be used to customize the language
strings in reactable()
.
reactable(
iris[1:30, ],
searchable = TRUE,
paginationType = "simple",
language = reactableLang(
searchPlaceholder = "Search...",
noData = "No entries found",
pageInfo = "{rowStart}\u2013{rowEnd} of {rows} entries",
pagePrevious = "\u276e",
pageNext = "\u276f",
# Accessible labels for assistive technology, such as screen readers
pagePreviousLabel = "Previous page",
pageNextLabel = "Next page"
)
)
#> Error in x$width %||% settings$fig.width * settings$dpi: non-numeric argument to binary operator
# Set the default language for all tables
options(reactable.language = reactableLang(
searchPlaceholder = "Search...",
noData = "No entries found",
pageInfo = "{rowStart} to {rowEnd} of {rows} entries"
))
reactable(iris[1:30, ], searchable = TRUE)
#> Error in x$width %||% settings$fig.width * settings$dpi: non-numeric argument to binary operator