Skip to contents

Button input for reactable column cell

Usage

button_extra(id, key = NULL, ...)

Arguments

id

id of the button input

key

alternative unique id for server side processing

...

parameters of button, only class is supported for now

Value

Custom JS button renderer for reactable

Examples

reactable::colDef(cell = button_extra("click", class = "table-button"))
#> $cell
#> [1] "function(cellInfo) {\n                 return React.createElement(ButtonExtras,\n                 {id: 'click', label: cellInfo.value,\n                  uuid: cellInfo.row['.internal_uuid'] ? cellInfo.row['.internal_uuid'] : (Number(cellInfo.id) + 1), column: cellInfo.column.id , class: 'table-button', className: 'table-button'}, cellInfo.id)\n        }"
#> attr(,"class")
#> [1] "JS_EVAL"
#> 
#> attr(,"class")
#> [1] "colDef"