
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Filters data by using a single search string and matching its value with all the filters. Only uses Text
and Number
filters.
Parameter | Type | Usage |
---|---|---|
data | any[] | List of objects that need to be filtered. |
filters | Filter[] | List of filters that will be used to filter data. |
search | string | What the user entered in the search box. |
Filters data by using the filters.
Parameter | Type | Usage |
---|---|---|
data | any[] | List of objects that need to be filtered. |
filters | Filter[] | List of filters that will be used to filter data. |
Returns all the filters that have a value.
Parameter | Type | Usage |
---|---|---|
filters | Filter[] | Filters to be evaluated. |
Resets the value of the filters to their original state.
Parameter | Type | Usage |
---|---|---|
filters | Filter[] | Filters to be reset. |
Restores filters from a JSON storage, converting each field to its original state.
Parameter | Type | Usage |
---|---|---|
storage | string | JSON storage. |
Field | Usage | Required |
---|---|---|
field | Must match the field name inside the filtered object. | ✓ |
label | Used to show the filter's name to the user. | |
inputType | Specifies the type of input that the user will interact with. Available types are Text , Number , Dropdown , MultiSelect , Calendar , CalendarRange and Checkbox | ✓ |
filterType | Specifies the method that will be used to filter. | |
value | Used to compare values with the filtered object. User input goes there. | |
options | Used to populate a filter with options. Should only be used with Dropdown and MultiSelect . | |
empty | Sets the empty value to be matched with when filtering using Dropdown and MultiSelect . | |
category | Used to group fields together in a form. |
Input Type | Associated Filter Types | Default |
---|---|---|
Number , Calendar | Less , LessOrEqual , Equal , GreaterOrEqual , Greater . | Equal |
Checkbox | True , False . | True |
FAQs
Easily filter any list of data with ready to use functions.
The npm package pg-filters receives a total of 4 weekly downloads. As such, pg-filters popularity was classified as not popular.
We found that pg-filters 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.