bhaveshpatel200 / vue3-datatable

vue3-datatable is a powerful component for creating dynamic and customizable data tables. It supports large amounts of data, sorting, pagination, and filtering and highly customizable
MIT License
134 stars 19 forks source link

Filters are not applied by default #56

Open asbpette opened 1 month ago

asbpette commented 1 month ago

I am trying to set filters like documented, but the filters are not applied as i expect. Does anybody have an idea on why?

I am defining the cols, per docs.

const cols = reactive([
    {
    field: "status.status",
    title: "Status",
    filter: true,
    condition: "is_null",
    value: "",
    type: "string",
    isUnique: false,
    hide: false,
    search: true,
    sort: true,
    html: false,
    },
    {...},
    {...}
]),

With this code, i expect the column to automatically filter rows where status.status is null, but no matter what i add as "condition" the filter is set to "contains"

Any ideas to how i should debug this?

bhaveshpatel200 commented 1 month ago

I think it should work with predefine filter values. Could you please let me know are you using Server side pagination or Client side pagination?