For each input event in a tableFilter widget a message is sent via a shiny
input. After input validation rejectEdit
can be used to give visual feedback
to the user in case of a validation failure.
rejectEdit(session, tbl, row, col, id, value = NULL, color = "red")
Shiny session object.
Name of the table beeing edited.
Row number as received via edit input.
Column number as received via edit input.
Unique identifier of the edit event, received via the edit input
Reset the input to this value if not null.
Text colour of a failed edit.
In edit mode the a tableFilter widget creates a shiny input element. The name
of this input is the name of the corresponding output element followed by
"_edit". For each edit event in the html table this input receives a list
giving a unique ID of the edit event ("id"), the row ("row"), the column
("col") and the new value ("val") of the cell. Row and column numbers are in
R coordinates. If showRowNames
is TRUE
, the column number of
the rownames is 0.