Binding Shiny inputs

The InputBinding methods are the set of instructions you need to provide to Shiny so it understands how to interact with your custom HTML input component by defining:

  1. How to find your input elements in the HTML.
  2. How to get a unique ID for each input instance.
  3. What type of data it represents.
  4. How to extract the value from your custom input.
  5. How to detect when the value changes and notify Shiny.
  6. How to update your input from the server.
  7. How to manage communication frequency for efficiency.
  8. How to set up and clean up your input element’s resources.

It relies on a class defined in the input_binding.js