Tabler action button

As shiny does that we can use the binding the behind the shiny::actionButton.

actionButtonInputBinding shiny input binding which apply for elements with class = action-button

var actionButtonInputBinding = new InputBinding();
$.extend(actionButtonInputBinding, {
  find: function(scope) {
    return $(scope).find('.action-button');
  },
  getValue: function(el) {
    return $(el).data('val') || 0;
  },
  // ....; Extra code removed
});