Skip to content

Table Filter ​

FTTableFilter is the popover shell used for column-level filters, most commonly inside FTDataTable header cells.

It renders the trigger button, the tooltip/popover container, and the standard Save Filter, Clear, and Filter actions. The actual filter fields and filtering logic stay in the consumer.

Usage ​

vue
<script setup lang="ts">
import { FTTableFilter } from '@fasttrack-solutions/vue-components-lib';
</script>
<script setup lang="ts">
import { FTTableFilter } from '@fasttrack-solutions/vue-components-lib';
</script>

Basic filter shell ​

vue
<FTTableFilter
  :active="active"
  @filter="applyFilter"
  @clear="clearFilter"
  @save="saveFilter"
>
  <div>
    <!-- your custom filter form -->
  </div>
</FTTableFilter>
<FTTableFilter
  :active="active"
  @filter="applyFilter"
  @clear="clearFilter"
  @save="saveFilter"
>
  <div>
    <!-- your custom filter form -->
  </div>
</FTTableFilter>

Props ​

PropTypeDefaultDescription
activebooleanfalseHighlights the trigger button to indicate an active filter.
disabledbooleanfalseDisables the Filter and Clear actions.
iconPrefixstring'fas'Font Awesome prefix used for the trigger icon.
placementplacement union'bottom'Tooltip/popover placement relative to the trigger.

Events ​

EventDescription
filterFired when the Filter action is clicked or the form is submitted.
clearFired when the Clear action is clicked.
saveFired when the Save Filter action is clicked.

Slots ​

SlotDescription
defaultCustom filter controls rendered inside the popover body.