confirmEdit: Give feedback in case of validaton success

Description Usage Arguments Details

Description

For each input event in a tableFilter widget a message is sent via a shiny input. After input validation confirmEdit can be used to give visual feedback to the user.

Usage

1
confirmEdit(session, tbl, row, col, id, value = NULL, color = "green")

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

Value to set text to after confirmation. Can be used to format input.

color

Transient text colour to indicate success

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.