{"id":15940216,"url":"https://github.com/pxlrbt/filter-elements","last_synced_at":"2025-08-03T15:32:07.172Z","repository":{"id":108876665,"uuid":"259560869","full_name":"pxlrbt/filter-elements","owner":"pxlrbt","description":"Filter HTML Elements by tag based filters by setting an data attribute.","archived":false,"fork":false,"pushed_at":"2020-04-28T09:32:42.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T14:39:48.823Z","etag":null,"topics":["filter","htmlelement","javascript","js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pxlrbt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-04-28T07:15:19.000Z","updated_at":"2024-10-28T19:54:57.000Z","dependencies_parsed_at":"2023-04-24T16:17:32.743Z","dependency_job_id":null,"html_url":"https://github.com/pxlrbt/filter-elements","commit_stats":null,"previous_names":["pxlrbt/js-filter-elements"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Ffilter-elements","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Ffilter-elements/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Ffilter-elements/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pxlrbt%2Ffilter-elements/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pxlrbt","download_url":"https://codeload.github.com/pxlrbt/filter-elements/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078783,"owners_count":20879950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filter","htmlelement","javascript","js"],"created_at":"2024-10-07T06:40:42.159Z","updated_at":"2025-04-03T20:41:53.998Z","avatar_url":"https://github.com/pxlrbt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Filter Elements\n\nLet's you filter HTML Elements by tag based filters by setting an data attribute. Supports clickable handles and selects.\n\n## Installation\n\n```bash\nnpm install @pxlrbt/filter-elements\n```\n\n## Usage\n\n```js\nimport FilterElements from '@pxlrbt/filter-elements';\nvar filter = new FilterElements();\n```\n\n```html\n\u003ca data-filter-key=\"tags\" data-filter-value=\"\"\u003eAll\u003c/a\u003e\n\u003ca data-filter-key=\"tags\" data-filter-value=\"js\"\u003eJavaScript\u003c/a\u003e\n\u003ca data-filter-key=\"tags\" data-filter-value=\"html\"\u003eHTML\u003c/a\u003e\n\n\u003cdiv\u003e\n  \u003cdiv data-filterable data-filter-tags=\"js\"\u003e\u003c/div\u003e\n  \u003cdiv data-filterable data-filter-tags=\"js,html\"\u003e\u003c/div\u003e\n  \u003cdiv data-filterable data-filter-tags=\"html\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n```\n\n```css\n[data-filterable] {\n    display: none;\n}\n\n[data-filter-filtered=\"false\"] {\n    display: block;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxlrbt%2Ffilter-elements","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpxlrbt%2Ffilter-elements","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpxlrbt%2Ffilter-elements/lists"}