rejectEdit: Give feedback in case of validaton failure.

Description Usage Arguments Details

Description

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.

Usage

1
rejectEdit(session, tbl, row, col, id, value = NULL, color = "red")

Arguments

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.

Details

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.


ThomasSiegmund/D3TableFilter documentation built on May 9, 2019, 4:46 p.m.