Skip to content

Commit

Permalink
Bump version to 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
glin committed Dec 4, 2022
1 parent de663a4 commit 514ab7a
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: reactable
Type: Package
Title: Interactive Data Tables for R
Version: 0.3.0.9000
Version: 0.4.0
Authors@R: c(
person("Greg", "Lin", email = "[email protected]", role = c("aut", "cre")),
person("Tanner", "Linsley", role = c("ctb", "cph"), comment = "React Table library"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# reactable 0.3.0.9000 (Unreleased)
# reactable 0.4.0

## New features

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ To learn more about using reactable, check out the examples below.
| --------- | --------- | --------- | --------- | --------- |
| IE 11*, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |

\* Support for Internet Explorer 11 was deprecated in reactable v0.3.0.9000.
\* Support for Internet Explorer 11 was deprecated in reactable v0.4.0.

## License
MIT
2 changes: 1 addition & 1 deletion inst/htmlwidgets/reactable.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies:
- name: reactable
version: 0.3.0.9000
version: 0.4.0
src: htmlwidgets
stylesheet: reactable.css
2 changes: 1 addition & 1 deletion vignettes/conditional-styling.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ stateProps <- dplyr::tribble(
"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",
"meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.3.0.9000)"),
"meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.4.0)"),
"hiddenColumns", '["Petal.Length"]', "columns being hidden in the table"
)
Expand Down
2 changes: 1 addition & 1 deletion vignettes/custom-rendering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ stateProps <- dplyr::tribble(
"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",
"meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.3.0.9000)"),
"meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.4.0)"),
"hiddenColumns", '["Petal.Length"]', "columns being hidden in the table"
)
Expand Down
6 changes: 3 additions & 3 deletions vignettes/examples.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ reactable(
### Custom metadata {#custom-meta-rendering}

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

You can pass arbitrary data from R to JavaScript render functions using the `meta`
Expand Down Expand Up @@ -1159,7 +1159,7 @@ reactable(sleep[1:6, ],
### Custom metadata {#custom-meta-styling}

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

You can pass arbitrary data from R to JavaScript style functions using the `meta`
Expand Down Expand Up @@ -2498,7 +2498,7 @@ htmltools::browsable(
### Column visibility toggle button

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

```{r}
Expand Down
18 changes: 9 additions & 9 deletions vignettes/javascript-api.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@ exclude any sorting or grouping. Hidden columns will also be included, but
this may be customizable in the future.

For further customization, you can use the `options` argument to only include specific columns,
exclude column headers, change the field separator, or change the decimal separator (new in v0.3.0.9000).
exclude column headers, change the field separator, or change the decimal separator (new in v0.4.0).

```ts
Reactable.downloadDataCSV(
tableId: string,
filename = "data.csv",
// New in v0.3.0.9000
// New in v0.4.0
options?: {
columnIds: string[],
headers: true,
Expand Down Expand Up @@ -220,7 +220,7 @@ Reactable.downloadDataCSV('cars-table', 'cars93.csv', {
### `Reactable.getDataCSV()`

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

Gets the table data as a CSV string. Same as [`Reactable.downloadDataCSV()`](#reactable-downloaddatacsv)
Expand Down Expand Up @@ -404,7 +404,7 @@ Reactable.toggleAllRowsExpanded('cars-table', false)
### `Reactable.setMeta()`

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

Sets the custom metadata for the table. `meta` can either be an object with new
Expand Down Expand Up @@ -438,7 +438,7 @@ Reactable.setMeta('cars-table', undefined)
### `Reactable.toggleHideColumn()`

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

Toggles the hidden state for a column between hidden and shown.
Expand Down Expand Up @@ -468,7 +468,7 @@ Reactable.toggleHideColumn('cars-table', 'Type', false)
### `Reactable.setHiddenColumns()`

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

Sets the hidden columns for the table. `columnIds` can either be an array of column IDs, or a
Expand Down Expand Up @@ -501,7 +501,7 @@ Reactable.setHiddenColumns('cars-table', [])
### `Reactable.setData()`

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

Updates the table data. `data` can either be in row or column format. In row format, `data` is an array
Expand Down Expand Up @@ -559,7 +559,7 @@ stateProps <- dplyr::tribble(
"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",
"meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.3.0.9000)"),
"meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.4.0)"),
"hiddenColumns", '["Petal.Length"]', "columns being hidden in the table"
)
Expand All @@ -576,7 +576,7 @@ Reactable.getState('cars-table')
### `Reactable.onStateChange()`

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

Sets up a function that will be called whenever the table state changes.
Expand Down
4 changes: 1 addition & 3 deletions vignettes/quarto/observable-reactable.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ Examples of using Observable with reactable in Quarto, based on the [Observable
from the Quarto documentation.

:::{.callout-note}
This is a work in progress, and requires new features in reactable v0.3.0.9000 (unreleased).
[Install reactable from GitHub](https://github.com/glin/reactable/#installation) to try out
the examples.
This is a work in progress, and requires new features in reactable v0.4.0.
:::

Source code: [observable-reactable.qmd](https://github.com/glin/reactable/blob/main/vignettes/quarto/observable-reactable.qmd)
Expand Down
2 changes: 1 addition & 1 deletion vignettes/static-rendering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ library(reactable)
```

::: {.callout}
New in v0.3.0.9000
New in v0.4.0
:::

## Introduction
Expand Down

0 comments on commit 514ab7a

Please sign in to comment.