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
2
votes
1 answer
Show tooltip on hover of whole cell in reactable
I have a reactable in R and I want to display a column that is highlighted in a certain color (in the example below: yellow) and on hover each cell should display a custom tooltip which depends on a hidden (show = FALSE) column.
I have managed to do…

TimTeaFan
- 17,549
- 4
- 18
- 39
2
votes
1 answer
Rotate headers of a reactable in R Shiny
See below a very simple R shiny app that renders a reactable.
https://kormir.shinyapps.io/reactable_example/
library(shiny)
library(reactable)
ui <- fluidPage(
tags$head(tags$style(HTML('.ReactTable {border-collapse:collapse; }
…

Arkadi w
- 129
- 22
2
votes
1 answer
How do I add separators in the footer (containing the total value of each column) of my reactable table in r?
I have built a table using the reactable package in RStudio. The first column contains text and all the others contain monetary values. I have added a footer which contains the total of each column except the first. For the body of the table, I…

Jemima
- 31
- 1
2
votes
1 answer
How to trigger a modalBox with observeEvent from a cell rendered button in a reactable?
Following on from this post, I wonder why showModal() inside of observeEvent() does not get triggered when i click on the cell rendered button?
I give the button the fixed ID 'character' on which the observeEvent() should listen and then open the…

werN
- 109
- 7
2
votes
0 answers
How can I make a new (pop up) window appear when clicking on the row in a table?
I created a reactable Table 1, which has one extra table (Table 2 - actually there are many tables, because it filters by Manufacturer == sales_by_mfr$Manufacturer[index])) inside it when clicking on the row (expandable row).
library(reactable)
data…

Priit Mets
- 465
- 2
- 14
2
votes
2 answers
how to create columngroups from data with changing/reactive column values in reactable (and shiny)?
Iam trying to create colGroups within a reactable but with changing values for the column by which i want to group. So in my example dataset the values for column group are red and blue but can change by user interaction since i want to embed the…

werN
- 109
- 7
2
votes
1 answer
How to fill bar charts in reactable table using a vector of colors?
I have the below example code (inspired by the Demo Cookbook) that creates my bar charts for each column of data in my reactable table.
library(tidyverse)
library(htmltools)
library(reactable)
data <- tibble(
a = c(9.175783855, 11.81526856,…

Ben_89
- 249
- 1
- 8
2
votes
0 answers
table disappears when more layers are added to a leaflet map
I created an interactive map along with reactable which I use to show points on the map and the other way round (user can select area on the map using button on the left to filter corresponding data in a table). The issue is that when I want to add…

mustafa00
- 751
- 1
- 7
- 28
2
votes
2 answers
How can I speed up a reactable with nested graphs?
I am trying to insert additional information into a reactable in R - one which has about 3600 rows. I've tried nesting a plot under each row (similar to this, but with nested plots instead of sub-tables). The only way I could make this work was to…

LexConstantine
- 71
- 8
2
votes
1 answer
Change data values based on selected rows in Shiny
I want to let the user select some rows of a (filtered) table and then change a value from those selected rows in the original data.
Please look at the example below, I´m almost there but the actionButton changes some rows that are not selected and…

AleG
- 153
- 8
2
votes
0 answers
Have all filter checkboxes checked to start when using crosstalk package with reactable in r
Since the default is to not have any filters applied, how can I make all checkboxes filled with a checkmark to start? Using crosstalk package with reactable.

Gil Meriken
- 21
- 1
2
votes
1 answer
R reactable - applying multiple styles in colDef
Columns in reactable (R package reactable) can be styled with a list of styles, a function or javascript - which works if I want to use one way only. How can these be combined (without rewriting the list, function or javascript…

Vlad
- 3,058
- 4
- 25
- 53
1
vote
1 answer
shiny reactable index of rows in filtered table are wrong
I have used a reactable with the option for select rows. But after filtering the reactable the row-numbers (respective the values) get from getReactableState("table", "selected") are wrong. Where is my mistake?
By clicking on a row with unfiltered…

Christian Oswald
- 17
- 4
1
vote
2 answers
modalDialog not opening after clicking on the same row in reactable
I am currently building a Shiny app where I'd allow a user to click on a row in a reactable and show a modalDialog with more info based on that row. I followed this post (How to trigger a modalBox with observeEvent from a cell rendered button in a…

Agrosel
- 489
- 3
- 15
1
vote
1 answer
How to show icons in specific rows in reactable R?
I have to create a reactable in R and insert a warning icon in specific rows (rows where the value is > 0).
let's do it using the example of iris table : I want to insert a warning icon in rows with Petal.width <0.2
data <- data('iris')
table <-…

RTIMI Anass
- 35
- 3