Description Usage Arguments Details
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.
1 | rejectEdit(session, tbl, row, col, id, value = NULL, color = "red")
|
session |
Shiny session object. |
tbl |
Name of the table beeing edited. |
row |
Row number as received via edit input. |
col |
Column number as received via edit input. |
id |
Unique identifier of the edit event, received via the edit input |
value |
Reset the input to this value if not null. |
color |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.