Skip to contents

The input editor allows entering of a single line of plain text

Usage

set_column_editor_input(
  widget,
  columns,
  search = TRUE,
  mask = "",
  select_contents = TRUE,
  elementAttributes = list(maxlength = 10)
)

Arguments

widget

A tabulator() HTML widget.

columns

The name of the column the formatter is applied to.

Use search type input element with clear button

mask

Apply a mask to the input to allow characters to be entered only in a certain order

select_contents

When the editor is loaded select its text content

elementAttributes

Set attributes directly on the input element

Value

The updated tabulator() HTML widget

Examples

df <- data.frame(values = c(1,2,3),
                 names = c("a","b","c"))
tabulator(df) |>
  set_column_editor_input("names")