Skip to content

Commit

Permalink
Clarify use of .rownames in column definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
glin committed Jul 22, 2024
1 parent 09c24a7 commit 363068c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ Suggests:
V8
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
Config/testthat/edition: 3
3 changes: 2 additions & 1 deletion R/reactable.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#' @param columnGroups List of column group definitions. See [colGroup()].
#' @param rownames Show row names? Defaults to `TRUE` if the data has row names.
#'
#' To customize the row names column, use `".rownames"` as the column name.
#' To customize the row names column, add a column definition using `".rownames"`
#' as the column name.
#'
#' Cells in the row names column are automatically marked up as row headers
#' for assistive technologies.
Expand Down
1 change: 0 additions & 1 deletion man/reactable-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/reactable.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/examples.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ reactable(
### Row names

Row names are shown by default if present. You can customize the row names column
using `".rownames"` as the column name:
by adding a column definition using `".rownames"` as the column name:

```{r}
reactable(
Expand Down

0 comments on commit 363068c

Please sign in to comment.