Navigation / Filter chips

Navigation

Filter chips

One chip per filterable column, each opening its own menu: a checklist of options, a minimum and maximum, or one exact value.

import { EcoFilterChips } from "vue-ecosphere"

Filter row

Open a chip: Status and Destination apply as each box is ticked; Owner has more than ten options, so it searches; Seats and Age take a range (try a minimum above the maximum); Reference takes one exact value.

{"status":["Pending","Blocked","In review","Approved"],"destination":["aw","rr"],"seats":{"min":10,"max":50}}

Multi-select with Apply

Add Apply only where each change costs a slow reload, and keep Clear all beside it.

API

NameTypeDefaultDescription
filtersEcoFilter[]—{ key, label, kind?: 'options' | 'range' | 'exact', options?, noun?, apply?, hint? }, in the table's column order.
v-modelRecord<string, (string|number)[] | { min, max } | string>{}Current values by filter key; a cleared filter is removed.
labelstring"Filters"Accessible name of the row (role=group).
clearAllLabelstring"Clear filters"The link after the last chip, shown only while something is filtered.
@change(key, value) => void—One filter changed.