Socket
Book a DemoInstallSign in
Socket

protvista-filter

Package Overview
Dependencies
Maintainers
7
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protvista-filter

Filter component for variants

3.8.22
latest
Source
npmnpm
Version published
Weekly downloads
57
-49.56%
Maintainers
7
Weekly downloads
 
Created
Source

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.

Keywords

nightingale

FAQs

Package last updated on 04 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.