3.8.22 • Published 9 months ago

protvista-filter v3.8.22

Weekly downloads
191
License
MIT
Repository
github
Last release
9 months ago

protvista-filter

Published on NPM

A custom element to filter data

Usage

<protvista-filter for="filtered-component-id"></protvista-filter>

API Reference

Properties

filters: Array

The filter configuration

[
  {
    name: "filter_name",
    type: {
      name: "group_name",
      text: "Group Label"
    },
    options: {
      labels: ["Filter option label"],
      colors: ["#333"] // Array so you can specify colour ranges
    },
    filterData: item => {} // the filter function
  }
];

Events

When an option is selected, a change event is emitted, with type activefilters. It contains an array of the selected filters, which contains callback function to apply to the data.

3.8.21

9 months ago

3.8.22

9 months ago

3.8.18

9 months ago

3.8.20

9 months ago

3.8.4

3 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.0.0

5 years ago

3.0.0-alpha.21

5 years ago

2.12.0

5 years ago

2.11.0

5 years ago

2.7.0

5 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.17

6 years ago

2.1.16

6 years ago

2.1.13

6 years ago

2.1.2

6 years ago

2.0.4

6 years ago

2.0.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago