Skip to contents

Date input for reactable column cell

Usage

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

Arguments

id

id of the date input

key

alternative unique id for server side processing

...

parameters of date input, only class is supported for now

Value

Custom JS date input renderer for reactable

Examples

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