Skip to contents

Text input for reactable column cell

Usage

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

Arguments

id

id of the text input

key

alternative unique id for server side processing

...

parameters of text input, only class is supported for now

Value

Custom JS text input renderer for reactable

Examples

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