Register an Input HandlerSource:
Adds an input handler for data of this type. When called, Shiny will use the
function provided to refine the data passed back from the client (after being
deserialized by jsonlite) before making it available in the
The type for which the handler should be added --- should be a single-element character vector.
The handler function. This is the function that will be used to parse the data delivered from the client before it is available in the
inputvariable. The function will be called with the following three parameters:
The value of this input as provided by the client, deserialized using jsonlite.
shinysessionin which the input exists.
The name of the input.
TRUE, will overwrite any existing handler without warning. If
FALSE, will throw an error if this class already has a handler defined.
This function will register the handler for the duration of the R process
(unless Shiny is explicitly reloaded). For that reason, the
should be very specific to this package to minimize the risk of colliding
with another Shiny package which might use this data type name. We recommend
the format of "packageName.widgetName". It should be called from the
Currently Shiny registers the following handlers:
type of a custom Shiny Input widget will be deduced using the