How to add filter for certain columns

Tags: #<Tag:0x00007f0b0925f628>

HI,

I want to add filter for certain columns not for all the columns. How to achieve this.

Thanks

Hey @fayejitendra

you can disable the option via a custom dropdown menu.

If you’d like to hide filter_by_value from 0 and 1 you’d use

  dropdownMenu: {
      items: {
        "filter_by_value": {
          hidden: function() {
            return hot.getSelectedRangeLast().to.col < 2;
          }
        },
        "filter_action_bar": {
          hidden: function() {
            return hot.getSelectedRangeLast().to.col < 2;
          }
        }
      }
    }