Binding Shiny inputs

Method Name Utility for Custom Inputs Description
initialize(el) Initial setup Invoked when the input element is first rendered or dynamically added, allowing for any required pre-binding initialization—such as configuring JavaScript widgets or setting initial states.
dispose(el) Teardown and cleanup Called when an input element is removed, this method cleans up event listeners and any other resources to prevent memory leaks and maintain application efficiency.