The numeric editor allows for numeric entry with a number type input element with increment and decrement buttons.
Source:R/editors.R
set_column_editor_numeric.Rd
The numeric editor allows for numeric entry with a number type input element with increment and decrement buttons.
Usage
set_column_editor_numeric(
widget,
columns,
min = 0,
max = 100,
step = 1,
elementAttributes = list(maxlength = 10),
mask = "",
select_contents = TRUE,
vertical_navigation = "table"
)
Arguments
- widget
A
tabulator()
HTML widget.- columns
The name of the column the formatter is applied to.
- min
the maximum allowed value
- max
the minimum allowed value
- step
the step size when incrementing/decrementing the value (default 1)
- elementAttributes
Set attributes directly on the element
- 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
determine how use of the up/down arrow keys will affect the editor, this can take two different types of value: : editor and table
Value
The updated tabulator()
HTML widget