0

Anyone please help me with the code to add an external filter in vue-table-2. I tried using slots

<div slot="filter__id">
    <input type="input" class="form-control">
</div>
fcdt
  • 2,371
  • 5
  • 14
  • 26
  • What do you mean by "external filter" here? – Yom T. Jan 17 '19 at 09:56
  • filter box outside the table. A search box is found outside the table which filters data from all fields. I have to make different search boxes for different field data searching. For eg: search box with a placeholder "search name", typing in this box showing filtered rows based on name search – Mohammed Kunhi Rappi Jan 17 '19 at 12:34

1 Answers1

0

You have to set filterable to true in the options you are passing to the table and then this slot will start working.

xKobalt
  • 1,498
  • 2
  • 13
  • 19