https://github.com/jakubvojvoda/javascript-item-filter
Simple item filter in JavaScript
https://github.com/jakubvojvoda/javascript-item-filter
css enumeration filter javascript numeric string
Last synced: 3 months ago
JSON representation
Simple item filter in JavaScript
- Host: GitHub
- URL: https://github.com/jakubvojvoda/javascript-item-filter
- Owner: JakubVojvoda
- Created: 2016-07-07T13:55:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-07T14:50:00.000Z (over 9 years ago)
- Last Synced: 2025-05-14T04:35:27.777Z (5 months ago)
- Topics: css, enumeration, filter, javascript, numeric, string
- Language: JavaScript
- Size: 320 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# javascript-item-filter
Simple item filter in JavaScript## Usage:
1. include file `filter.js` in HTML head element
2. call function `filterList(x)`, where `x` is array of object properties:
* `name`: class name of attribute to filter
* `type`: type of attribute (`str` for string type, `num` for numeric type and `enum` for enumeration type)
* e.g. `x = [{name:"nazov", type:"str"}, {name:"cena", type:"num"}, {name:"autor", type:"enum"}]`
3. optional style definition by editing and calling function `styleForm()`