Skip to content

Add ability to get current filtered items in CDataTable  #58

Closed
@CVeniamin

Description

@CVeniamin

After looking at the docs CDataTable does not have an event that indicates what are the current filtered items after one applies a filter to a specific column or searched in a table.

Hence, after looking at the code I saw that this can be easily achieved by emitting an event after

this.$emit('update:column-filter-value', this.columnFilterState)
and
this.$emit('update:table-filter-value', this.tableFilterState)
for instance

this.$emit('update:table-items', this.currentItems)

The name of the new event is mere indicative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions