Re-create textInput

  1. Write the JS binding methods as you can see below for the find method.
$(function() {
  // Input binding
  let customTextBinding = new Shiny.InputBinding();

  $.extend(customTextBinding, {
    find: function(scope) {
      console.log($(scope).find('.input-text'));
      return $(scope).find('.input-text');
    }
  });

  Shiny.inputBindings.register(customTextBinding, 'text');
});