Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
react-filter-control
Advanced tools
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/komarovalexander/react-filter-control/blob/master/LICENSE) [![Build Status](https://travis-ci.com/komarovalexander/react-filter-control.svg?branch=master)](https://t
The React component for building the composite filter criteria
npm
npm install react-filter-control
yarn
yarn add react-filter-control
import React from "react";
import ReactDOM from "react-dom";
import FilterControl from "react-filter-control";
import { fields, filterValue } from "./data.js";
const handleFilterValueChange = filterValue => {
// ...
};
const App = () => {
return (
<FilterControl
filterValue={filterValue}
fields={fields}
onFilterValueChanged={handleFilterValueChange}
/>
);
};
ReactDOM.render(<App />, document.querySelector("#root"));
Properties
Name | Type | Description |
---|---|---|
fields | Array.<Field> | The fields settings |
filterValue | FilterValue | The filterValue settings |
groups | Array.<Group> | The groups settings |
onFilterValueChanged | event | The filter value changed handler |
Object
Properties
Name | Type | Description |
---|---|---|
groupName | string | Group name |
items | Array.<(FilterValueGroup|FilterValueItem)> | Items in group |
Object
Properties
Name | Type | Description |
---|---|---|
key | key | Item key |
groupName | string | Group name |
items | Array.<(FilterValueGroup|FilterValueItem)> | Items in group |
Object
Properties
Name | Type | Description |
---|---|---|
key | key | Item key |
field | string | Field |
operator | string | Operator |
value | any | Value |
Object
Properties
Name | Type | Description |
---|---|---|
name | string | Field name |
caption | string | Field caption |
operators | Array.<Operator> | Field operators |
Object
Properties
Name | Type | Description |
---|---|---|
name | string | Group name |
caption | string | Group caption |
Object
Properties
Name | Type | Description |
---|---|---|
name | string | Operator name |
caption | string | Operator caption |
This project is licensed under the terms of the MIT license.
FAQs
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/komarovalexander/react-filter-control/blob/master/LICENSE) [![Build Status](https://travis-ci.com/komarovalexander/react-filter-control.svg?branch=master)](https://t
The npm package react-filter-control receives a total of 36 weekly downloads. As such, react-filter-control popularity was classified as not popular.
We found that react-filter-control demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.