find(scope) |
Element discovery |
Defines how Shiny.js locates HTML elements within a given scope (e.g., a div) to treat as instances of your custom input. This method must be implemented for proper element selection. |
getId(el) |
Unique ID extraction |
Retrieves a unique identifier for the input element—using data-input-id or the element’s id —to correctly link the client-side input with the corresponding Shiny server object. |
getType() |
Data type specification |
Returns the type of the input (e.g., “numeric”, “character”) so that the server can properly deserialize JSON data. If not specified, it defaults to a general type. |