Binding Shiny inputs

Method Name Utility for Custom Inputs Description
receiveMessage(el, data) Server-controlled updates Allows the Shiny server to update the input element by sending new data (like value, min, or max) and triggers a change event. This method must be implemented to support dynamic updates from R.
getState(el) Comprehensive state capture Captures the complete state of the input (beyond just its value), which is useful for complex inputs with multiple properties. This state can then be communicated back to the server for restoration or analysis.
getRatePolicy() Efficient server communication Specifies the rate at which input updates are sent to the server (using strategies like debounce or throttle). Defaults to null if not defined, but can be customized to optimize performance during rapid input changes.