Skip to content

Commit 01a00f6

Browse files
committed
Remove old new version callouts
1 parent 514ab7a commit 01a00f6

File tree

5 files changed

+29
-61
lines changed

5 files changed

+29
-61
lines changed

vignettes/conditional-styling.Rmd

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,12 +220,12 @@ colDef(
220220
```{r, echo=FALSE, asis=TRUE}
221221
rowInfoProps <- dplyr::tribble(
222222
~Property, ~Example, ~Description,
223-
"values", '{ Petal.Length: 1.7, Species: "setosa" }', "row data values (new in v0.3.0)",
223+
"values", '{ Petal.Length: 1.7, Species: "setosa" }', "row data values",
224224
"row", '{ Petal.Length: 1.7, Species: "setosa" }', tagList("same as ", tags$code("values"), " (deprecated in v0.3.0)"),
225225
"index", "20", "row index (zero-based)",
226226
"viewIndex", "0", "row index within the page (zero-based)",
227227
"aggregated", "true", "whether the row is aggregated",
228-
"expanded", "true", "whether the row is expanded (new in v0.3.0)",
228+
"expanded", "true", "whether the row is expanded",
229229
"subRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "sub rows data (aggregated rows only)",
230230
"level", "0", "row nesting depth (zero-based)",
231231
"selected", "true", "whether the row is selected"
@@ -241,8 +241,8 @@ columnProps <- dplyr::tribble(
241241
~Property, ~Example, ~Description,
242242
"id", '"Petal.Length"', "column ID",
243243
"name", '"Petal Length"', "column display name",
244-
"filterValue", '"petal"', "column filter value (new in v0.3.0)",
245-
"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)")
244+
"filterValue", '"petal"', "column filter value ",
245+
"setFilter", 'function setFilter(value: any)', tagList("function to set the column filter value", "(set to ", tags$code("undefined"), " to clear the filter)")
246246
)
247247
248248
propsTable(columnProps)
@@ -254,12 +254,12 @@ propsTable(columnProps)
254254
stateProps <- dplyr::tribble(
255255
~Property, ~Example, ~Description,
256256
"sorted", '[{ id: "Petal.Length", desc: true }, ...]', "columns being sorted in the table",
257-
"page", "2", "page index (zero-based, new in v0.3.0)",
258-
"pageSize", "10", "page size (new in v0.3.0)",
259-
"pages", "5", "number of pages (new in v0.3.0)",
260-
"filters", '[{ id: "Species", value: "petal" }]', "column filter values (new in v0.3.0)",
261-
"searchValue", '"petal"', "table search value (new in v0.3.0)",
262-
"selected", '[0, 1, 4]', "selected row indices (zero-based, new in v0.3.0)",
257+
"page", "2", "page index (zero-based)",
258+
"pageSize", "10", "page size",
259+
"pages", "5", "number of pages",
260+
"filters", '[{ id: "Species", value: "petal" }]', "column filter values",
261+
"searchValue", '"petal"', "table search value",
262+
"selected", '[0, 1, 4]', "selected row indices (zero-based)",
263263
"pageRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data on the page",
264264
"sortedData", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data in the table (after sorting, filtering, grouping)",
265265
"data", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "original row data in the table",

vignettes/custom-filtering.Rmd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ propsTable <- function(props) {
3838
}
3939
```
4040

41-
::: {.callout}
42-
New in v0.3.0
43-
:::
44-
4541
Custom filter methods and custom filter inputs let you change how filtering is done
4642
in reactable. By default, all filter inputs are text inputs that filter data using
4743
a case-insensitive text match, or for numeric columns, a prefix match.

vignettes/custom-rendering.Rmd

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ colDef(
173173
function(cellInfo, state) {
174174
// input:
175175
// - cellInfo, an object containing cell info
176-
// - state, an object containing the table state (optional, new in v0.3.0)
176+
// - state, an object containing the table state (optional)
177177
//
178178
// output:
179179
// - content to render (e.g. an HTML string)
@@ -209,11 +209,11 @@ cellInfoProps <- dplyr::tribble(
209209
"index", "20", "row index (zero-based)",
210210
"viewIndex", "0", "row index within the page (zero-based)",
211211
"aggregated", "true", "whether the row is aggregated",
212-
"expanded", "true", "whether the row is expanded (new in v0.3.0)",
213-
"filterValue", '"petal"', "column filter value (new in v0.3.0)",
212+
"expanded", "true", "whether the row is expanded",
213+
"filterValue", '"petal"', "column filter value",
214214
"subRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "sub rows data (aggregated cells only)",
215215
"level", "0", "row nesting depth (zero-based)",
216-
"selected", "true", "whether the row is selected (new in v0.3.0)"
216+
"selected", "true", "whether the row is selected"
217217
)
218218
219219
propsTable(cellInfoProps)
@@ -225,12 +225,12 @@ propsTable(cellInfoProps)
225225
stateProps <- dplyr::tribble(
226226
~Property, ~Example, ~Description,
227227
"sorted", '[{ id: "Petal.Length", desc: true }, ...]', "columns being sorted in the table",
228-
"page", "2", "page index (zero-based, new in v0.3.0)",
229-
"pageSize", "10", "page size (new in v0.3.0)",
230-
"pages", "5", "number of pages (new in v0.3.0)",
231-
"filters", '[{ id: "Species", value: "petal" }]', "column filter values (new in v0.3.0)",
232-
"searchValue", '"petal"', "table search value (new in v0.3.0)",
233-
"selected", '[0, 1, 4]', "selected row indices (zero-based, new in v0.3.0)",
228+
"page", "2", "page index (zero-based)",
229+
"pageSize", "10", "page size",
230+
"pages", "5", "number of pages",
231+
"filters", '[{ id: "Species", value: "petal" }]', "column filter values",
232+
"searchValue", '"petal"', "table search value",
233+
"selected", '[0, 1, 4]', "selected row indices (zero-based)",
234234
"pageRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data on the page",
235235
"sortedData", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data in the table (after sorting, filtering, grouping)",
236236
"data", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "original row data in the table",
@@ -271,7 +271,7 @@ colDef(
271271
function(column, state) {
272272
// input:
273273
// - column, an object containing column properties
274-
// - state, an object containing the table state (optional, new in v0.3.0)
274+
// - state, an object containing the table state (optional)
275275
//
276276
// output:
277277
// - content to render (e.g. an HTML string)
@@ -287,10 +287,10 @@ colDef(
287287
```{r, echo=FALSE, asis=TRUE}
288288
columnProps <- dplyr::tribble(
289289
~Property, ~Example, ~Description,
290-
"id", '"Petal.Length"', "column ID (new in v0.3.0)",
291-
"name", '"Petal Length"', "column display name (new in v0.3.0)",
292-
"filterValue", '"petal"', "column filter value (new in v0.3.0)",
293-
"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)"),
290+
"id", '"Petal.Length"', "column ID",
291+
"name", '"Petal Length"', "column display name",
292+
"filterValue", '"petal"', "column filter value",
293+
"setFilter", 'function setFilter(value: any)', tagList("function to set the column filter value", "(set to ", tags$code("undefined"), " to clear the filter)"),
294294
"column", '{ id: "Petal.Length", name: "Petal Length", filterValue: "petal" }', "column info object (deprecated in v0.3.0)",
295295
"data", '[{ Petal.Length: 1.7, Petal.Width: 0.2, _subRows: [] }, ...]', "current row data in the table (deprecated in v0.3.0)"
296296
)
@@ -334,7 +334,7 @@ colDef(
334334
function(column, state) {
335335
// input:
336336
// - column, an object containing column properties
337-
// - state, an object containing the table state (optional, new in v0.3.0)
337+
// - state, an object containing the table state (optional)
338338
//
339339
// output:
340340
// - content to render (e.g. an HTML string)
@@ -390,7 +390,7 @@ reactable(
390390
function(rowInfo, state) {
391391
// input:
392392
// - rowInfo, an object containing row info
393-
// - state, an object containing the table state (optional, new in v0.3.0)
393+
// - state, an object containing the table state (optional)
394394
//
395395
// output:
396396
// - content to render (e.g. an HTML string)
@@ -405,11 +405,11 @@ reactable(
405405
```{r, echo=FALSE, asis=TRUE}
406406
rowInfoProps <- dplyr::tribble(
407407
~Property, ~Example, ~Description,
408-
"values", '{ Petal.Length: 1.7, Species: "setosa" }', "row data values (new in v0.3.0)",
408+
"values", '{ Petal.Length: 1.7, Species: "setosa" }', "row data values",
409409
"row", '{ Petal.Length: 1.7, Species: "setosa" }', tagList("same as ", tags$code("values"), " (deprecated in v0.3.0)"),
410410
"index", "20", "row index (zero-based)",
411411
"viewIndex", "0", "row index within the page (zero-based)",
412-
"expanded", "true", "whether the row is expanded (new in v0.3.0)",
412+
"expanded", "true", "whether the row is expanded",
413413
"level", "0", "row nesting depth (zero-based)",
414414
"selected", "true", "whether the row is selected"
415415
)

vignettes/examples.Rmd

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,6 @@ reactable(
441441

442442
### Include sub rows in pagination
443443

444-
::: {.callout}
445-
New in v0.3.0
446-
:::
447-
448444
By default, sub rows are excluded from pagination and always shown on the same
449445
page when expanded. To include sub rows in pagination, you can set `paginateSubRows`
450446
to `TRUE`. This is recommended for grouped tables with a large number of rows
@@ -715,10 +711,6 @@ reactable(data, columns = list(
715711

716712
### Grouped cell rendering
717713

718-
::: {.callout}
719-
New in v0.3.0
720-
:::
721-
722714
```{r}
723715
data <- MASS::Cars93[10:22, c("Manufacturer", "Model", "Type", "Price", "MPG.city")]
724716
@@ -1384,10 +1376,6 @@ reactable(
13841376

13851377
### Vertical alignment
13861378

1387-
::: {.callout}
1388-
New in v0.3.0
1389-
:::
1390-
13911379
You can change the vertical alignment of cell content using the `vAlign` or
13921380
`headerVAlign` arguments in `colDef()` and `colGroup()`. `vAlign` controls the
13931381
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)
16621650

16631651
## Sticky Columns
16641652

1665-
::: {.callout}
1666-
New in v0.3.0
1667-
:::
1668-
16691653
You can make columns sticky when scrolling horizontally using the `sticky`
16701654
argument in `colDef()` or `colGroup()`. Set `sticky` to either `"left"`
16711655
or `"right"` to make the column stick to the left or right side.
@@ -1767,10 +1751,6 @@ reactable(iris[1:5, ], rownames = TRUE)
17671751

17681752
### Row headers
17691753

1770-
::: {.callout}
1771-
New in v0.3.0
1772-
:::
1773-
17741754
You can mark up cells in a column as row headers by setting `rowHeader` to `TRUE`
17751755
in `colDef()`.
17761756

@@ -2308,10 +2288,6 @@ htmltools::browsable(
23082288

23092289
## JavaScript API
23102290

2311-
::: {.callout}
2312-
New in v0.3.0
2313-
:::
2314-
23152291
You can use the JavaScript API to create custom interactive controls for your table
23162292
without the use of Shiny, or add cross-widget interactions beyond what Crosstalk provides.
23172293

vignettes/javascript-api.Rmd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ propsTable <- function(props) {
3838
}
3939
```
4040

41-
::: {.callout}
42-
New in v0.3.0
43-
:::
44-
4541
## Introduction
4642

4743
The JavaScript API lets you manipulate and access tables from JavaScript.

0 commit comments

Comments
 (0)