Skip to contents

Checkbox input for reactable column cell

Usage

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

Arguments

id

id of the checkbox input

key

alternative unique id for server side processing

...

parameters of checkbox, only class is supported for now

Value

Custom JS checkbox renderer for reactable

Examples

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