Use this tag for questions related to the reactable package. The reactable package provides functions to create interactive data tables in the R programming language, based on the React Table library and made with reactR.
Questions tagged [reactable]
180 questions
0
votes
0 answers
How to use select filters for reactable objects in R shiny when the underlying data can be changed dynamically?
I have an R shiny app where I want to display a table as a reactable object. There I want to have a filter functionality that provides more functionality than the standard filters for reactable objects that appear when I set filterable = TRUE in…

jfiedler
- 43
- 4
0
votes
1 answer
How to order checkbox options from crosstalk?
I'm using checkbox filters from crosstalk to filter a reactable table.
By default, the checkboxes are ordered alphabetically. I want to override this, and sort by e.g. number of entries, or by factor level.
Here's a silly example: Below, I've got a…

Ulrik Lyngs
- 98
- 1
- 5
0
votes
0 answers
Add a row number column to reactable table in Shiny app R based on sorted column
I have a reactable table in an R Shiny app that looks like this:
Is there a way to add a row number or rank column that dynamically changes based on which column is sorted? So if the Carries column is sorted from high-to-low, the new column would…

Sam Hoppen
- 355
- 2
- 9
0
votes
1 answer
Get data from nested reactable of shiny dashboard with Reactable.getState
I have a dashboard created with shiny and the reactablepackage. I would like to download the data shown in the table into an Excel file with Reactable.getState The problem is that I can only get the data of the inner tables if they were…
0
votes
0 answers
ReactTable v6 drag row or move up and down React
Has anyone using react table v6 been able to move a row up or down by dragging it? Is it possible?
I am using react table v6 and bulma css.

juan perez
- 23
- 5
0
votes
1 answer
OnDoubleClick row reactable
The documentation of reactable provides a way to define a custom action using the onClick.
onClick = JS("function(rowInfo, column) {
// Only handle click events on the 'details' column
if (column.id !== 'details') {
return
}
…

Odrai
- 2,163
- 2
- 31
- 62
0
votes
1 answer
In R Shiny with reactable package how to make table downloadable by clicking on download font-awsome icon?
This is my code:
library(shiny)
ui <- fluidPage(
data<- iris[1,] %>% mutate(download = 1),
reactable(data,
columns = list(
download = colDef(cell = icon_assign(data, icon = "download"))))
)
server <- function(input,…

Laura
- 675
- 10
- 32
0
votes
0 answers
how to make reactable which is reactive to data in database in R?
I want to display a table in shiny dashboard by using reactable. I want the data in this table change every time when there is a change in the database.
I've tried using Observe(), but when I add data in the database, the table doesn't change and…

Taufiq Rochman
- 11
- 3
0
votes
1 answer
Can't make sticky columns in an R shiny app using reactable
Hope you are doing great today.
I have an issue trying to make some columns sticky.
Here is a piece of code that highlights the error I get: Error in colDef: unused argument (sticky = "left")
Not sure what I am doing wrong, or if there is an issue…

HK6
- 1
0
votes
0 answers
In R - Using gt() and gtExtras() tables packages is possible to create expandable row?
Is it possible to include a expandable row in gt()/gtExtras() packages in R, just like we can create in reactable() package?
https://glin.github.io/reactable/articles/examples.html#expandable-row-details
This is my…

Laura
- 675
- 10
- 32
0
votes
0 answers
R - render sparkline::spk_chr() in {reactable}
How can I render a text column containing the output of {sparkline}s' spk_chr() with {reactable}?
Note that I do not want to use the way described in the docs (https://glin.github.io/reactable/articles/examples.html), but explicitly use spk_chr()…

Rob G.
- 395
- 1
- 8
0
votes
1 answer
In R language with (reactable) How to align all bars for different values when using data_bars() and setting text_position = "outside-base"
I want to align all bars to appear in a nice way and not too missy for the columns when I am using data_bars() for a column inside reactable().. when the value is less than 10. the bar appears to the left of others with value > 10. because it starts…

chaw r
- 57
- 5
0
votes
1 answer
How to get reactive values from a click on shiny?
Hello and thanks for reading me. I am working on a small app that shows a table in shiny with the "reactable" library, but I would like to obtain a reactive value when I click on a certain cell, with which I can get a text output type "paste0("you…

Jorge Hernández
- 567
- 4
- 9
0
votes
2 answers
Incorrect No of Icons Assigned in reactablefmtr icon_assign
The attached code should present the number of blue circles (between 0 and 4) based on the responseCount, but it doesn't. I can't see why.
I always want there to be 4 in total (blue + grey) even when the selection has a lower…

Chris
- 1,449
- 1
- 18
- 39
0
votes
0 answers
Looking for a pretty way to create expandable rows for columns with a lot of text
I was hoping to make a table that has expandable rows that may stay open when toggled.
I wanted to put the columns with long amounts of text as expandable row details. The problem is when I use "details" in reactable to expand that column it's so…

s.libes
- 61
- 3