diff --git a/vignettes/conditional-styling.Rmd b/vignettes/conditional-styling.Rmd index 7c2752c5..70df4dfc 100644 --- a/vignettes/conditional-styling.Rmd +++ b/vignettes/conditional-styling.Rmd @@ -220,12 +220,12 @@ colDef( ```{r, echo=FALSE, asis=TRUE} rowInfoProps <- dplyr::tribble( ~Property, ~Example, ~Description, - "values", '{ Petal.Length: 1.7, Species: "setosa" }', "row data values (new in v0.3.0)", + "values", '{ Petal.Length: 1.7, Species: "setosa" }', "row data values", "row", '{ Petal.Length: 1.7, Species: "setosa" }', tagList("same as ", tags$code("values"), " (deprecated in v0.3.0)"), "index", "20", "row index (zero-based)", "viewIndex", "0", "row index within the page (zero-based)", "aggregated", "true", "whether the row is aggregated", - "expanded", "true", "whether the row is expanded (new in v0.3.0)", + "expanded", "true", "whether the row is expanded", "subRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "sub rows data (aggregated rows only)", "level", "0", "row nesting depth (zero-based)", "selected", "true", "whether the row is selected" @@ -241,8 +241,8 @@ columnProps <- dplyr::tribble( ~Property, ~Example, ~Description, "id", '"Petal.Length"', "column ID", "name", '"Petal Length"', "column display name", - "filterValue", '"petal"', "column filter value (new in v0.3.0)", - "setFilter", 'function setFilter(value: any)', tagList("function to set the column filter value", "(set to ", tags$code("undefined"), " to clear the filter) (new in v0.3.0)") + "filterValue", '"petal"', "column filter value ", + "setFilter", 'function setFilter(value: any)', tagList("function to set the column filter value", "(set to ", tags$code("undefined"), " to clear the filter)") ) propsTable(columnProps) @@ -254,12 +254,12 @@ propsTable(columnProps) stateProps <- dplyr::tribble( ~Property, ~Example, ~Description, "sorted", '[{ id: "Petal.Length", desc: true }, ...]', "columns being sorted in the table", - "page", "2", "page index (zero-based, new in v0.3.0)", - "pageSize", "10", "page size (new in v0.3.0)", - "pages", "5", "number of pages (new in v0.3.0)", - "filters", '[{ id: "Species", value: "petal" }]', "column filter values (new in v0.3.0)", - "searchValue", '"petal"', "table search value (new in v0.3.0)", - "selected", '[0, 1, 4]', "selected row indices (zero-based, new in v0.3.0)", + "page", "2", "page index (zero-based)", + "pageSize", "10", "page size", + "pages", "5", "number of pages", + "filters", '[{ id: "Species", value: "petal" }]', "column filter values", + "searchValue", '"petal"', "table search value", + "selected", '[0, 1, 4]', "selected row indices (zero-based)", "pageRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data on the page", "sortedData", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data in the table (after sorting, filtering, grouping)", "data", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "original row data in the table", diff --git a/vignettes/custom-filtering.Rmd b/vignettes/custom-filtering.Rmd index c4f1eeb4..2a7981b7 100644 --- a/vignettes/custom-filtering.Rmd +++ b/vignettes/custom-filtering.Rmd @@ -38,10 +38,6 @@ propsTable <- function(props) { } ``` -::: {.callout} -New in v0.3.0 -::: - Custom filter methods and custom filter inputs let you change how filtering is done in reactable. By default, all filter inputs are text inputs that filter data using a case-insensitive text match, or for numeric columns, a prefix match. diff --git a/vignettes/custom-rendering.Rmd b/vignettes/custom-rendering.Rmd index 3cfabb3a..b783dcd5 100644 --- a/vignettes/custom-rendering.Rmd +++ b/vignettes/custom-rendering.Rmd @@ -173,7 +173,7 @@ colDef( function(cellInfo, state) { // input: // - cellInfo, an object containing cell info - // - state, an object containing the table state (optional, new in v0.3.0) + // - state, an object containing the table state (optional) // // output: // - content to render (e.g. an HTML string) @@ -209,11 +209,11 @@ cellInfoProps <- dplyr::tribble( "index", "20", "row index (zero-based)", "viewIndex", "0", "row index within the page (zero-based)", "aggregated", "true", "whether the row is aggregated", - "expanded", "true", "whether the row is expanded (new in v0.3.0)", - "filterValue", '"petal"', "column filter value (new in v0.3.0)", + "expanded", "true", "whether the row is expanded", + "filterValue", '"petal"', "column filter value", "subRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "sub rows data (aggregated cells only)", "level", "0", "row nesting depth (zero-based)", - "selected", "true", "whether the row is selected (new in v0.3.0)" + "selected", "true", "whether the row is selected" ) propsTable(cellInfoProps) @@ -225,12 +225,12 @@ propsTable(cellInfoProps) stateProps <- dplyr::tribble( ~Property, ~Example, ~Description, "sorted", '[{ id: "Petal.Length", desc: true }, ...]', "columns being sorted in the table", - "page", "2", "page index (zero-based, new in v0.3.0)", - "pageSize", "10", "page size (new in v0.3.0)", - "pages", "5", "number of pages (new in v0.3.0)", - "filters", '[{ id: "Species", value: "petal" }]', "column filter values (new in v0.3.0)", - "searchValue", '"petal"', "table search value (new in v0.3.0)", - "selected", '[0, 1, 4]', "selected row indices (zero-based, new in v0.3.0)", + "page", "2", "page index (zero-based)", + "pageSize", "10", "page size", + "pages", "5", "number of pages", + "filters", '[{ id: "Species", value: "petal" }]', "column filter values", + "searchValue", '"petal"', "table search value", + "selected", '[0, 1, 4]', "selected row indices (zero-based)", "pageRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data on the page", "sortedData", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data in the table (after sorting, filtering, grouping)", "data", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "original row data in the table", @@ -271,7 +271,7 @@ colDef( function(column, state) { // input: // - column, an object containing column properties - // - state, an object containing the table state (optional, new in v0.3.0) + // - state, an object containing the table state (optional) // // output: // - content to render (e.g. an HTML string) @@ -287,10 +287,10 @@ colDef( ```{r, echo=FALSE, asis=TRUE} columnProps <- dplyr::tribble( ~Property, ~Example, ~Description, - "id", '"Petal.Length"', "column ID (new in v0.3.0)", - "name", '"Petal Length"', "column display name (new in v0.3.0)", - "filterValue", '"petal"', "column filter value (new in v0.3.0)", - "setFilter", 'function setFilter(value: any)', tagList("function to set the column filter value", "(set to ", tags$code("undefined"), " to clear the filter) (new in v0.3.0)"), + "id", '"Petal.Length"', "column ID", + "name", '"Petal Length"', "column display name", + "filterValue", '"petal"', "column filter value", + "setFilter", 'function setFilter(value: any)', tagList("function to set the column filter value", "(set to ", tags$code("undefined"), " to clear the filter)"), "column", '{ id: "Petal.Length", name: "Petal Length", filterValue: "petal" }', "column info object (deprecated in v0.3.0)", "data", '[{ Petal.Length: 1.7, Petal.Width: 0.2, _subRows: [] }, ...]', "current row data in the table (deprecated in v0.3.0)" ) @@ -334,7 +334,7 @@ colDef( function(column, state) { // input: // - column, an object containing column properties - // - state, an object containing the table state (optional, new in v0.3.0) + // - state, an object containing the table state (optional) // // output: // - content to render (e.g. an HTML string) @@ -390,7 +390,7 @@ reactable( function(rowInfo, state) { // input: // - rowInfo, an object containing row info - // - state, an object containing the table state (optional, new in v0.3.0) + // - state, an object containing the table state (optional) // // output: // - content to render (e.g. an HTML string) @@ -405,11 +405,11 @@ reactable( ```{r, echo=FALSE, asis=TRUE} rowInfoProps <- dplyr::tribble( ~Property, ~Example, ~Description, - "values", '{ Petal.Length: 1.7, Species: "setosa" }', "row data values (new in v0.3.0)", + "values", '{ Petal.Length: 1.7, Species: "setosa" }', "row data values", "row", '{ Petal.Length: 1.7, Species: "setosa" }', tagList("same as ", tags$code("values"), " (deprecated in v0.3.0)"), "index", "20", "row index (zero-based)", "viewIndex", "0", "row index within the page (zero-based)", - "expanded", "true", "whether the row is expanded (new in v0.3.0)", + "expanded", "true", "whether the row is expanded", "level", "0", "row nesting depth (zero-based)", "selected", "true", "whether the row is selected" ) diff --git a/vignettes/examples.Rmd b/vignettes/examples.Rmd index 97cfc8c7..654d9f42 100644 --- a/vignettes/examples.Rmd +++ b/vignettes/examples.Rmd @@ -441,10 +441,6 @@ reactable( ### Include sub rows in pagination -::: {.callout} -New in v0.3.0 -::: - By default, sub rows are excluded from pagination and always shown on the same page when expanded. To include sub rows in pagination, you can set `paginateSubRows` to `TRUE`. This is recommended for grouped tables with a large number of rows @@ -715,10 +711,6 @@ reactable(data, columns = list( ### Grouped cell rendering -::: {.callout} -New in v0.3.0 -::: - ```{r} data <- MASS::Cars93[10:22, c("Manufacturer", "Model", "Type", "Price", "MPG.city")] @@ -1384,10 +1376,6 @@ reactable( ### Vertical alignment -::: {.callout} -New in v0.3.0 -::: - You can change the vertical alignment of cell content using the `vAlign` or `headerVAlign` arguments in `colDef()` and `colGroup()`. `vAlign` controls the alignment of data cells, while `headerVAlign` controls the alignment of header cells. @@ -1662,10 +1650,6 @@ reactable(MASS::Cars93[1:5, ], resizable = TRUE, wrap = FALSE, bordered = TRUE) ## Sticky Columns -::: {.callout} -New in v0.3.0 -::: - You can make columns sticky when scrolling horizontally using the `sticky` argument in `colDef()` or `colGroup()`. Set `sticky` to either `"left"` or `"right"` to make the column stick to the left or right side. @@ -1767,10 +1751,6 @@ reactable(iris[1:5, ], rownames = TRUE) ### Row headers -::: {.callout} -New in v0.3.0 -::: - You can mark up cells in a column as row headers by setting `rowHeader` to `TRUE` in `colDef()`. @@ -2308,10 +2288,6 @@ htmltools::browsable( ## JavaScript API -::: {.callout} -New in v0.3.0 -::: - You can use the JavaScript API to create custom interactive controls for your table without the use of Shiny, or add cross-widget interactions beyond what Crosstalk provides. diff --git a/vignettes/javascript-api.Rmd b/vignettes/javascript-api.Rmd index baaa51ff..4ebe6b11 100644 --- a/vignettes/javascript-api.Rmd +++ b/vignettes/javascript-api.Rmd @@ -38,10 +38,6 @@ propsTable <- function(props) { } ``` -::: {.callout} -New in v0.3.0 -::: - ## Introduction The JavaScript API lets you manipulate and access tables from JavaScript.