{"id":23053640,"url":"https://github.com/component/selectable","last_synced_at":"2025-08-15T04:30:51.505Z","repository":{"id":8344304,"uuid":"9903146","full_name":"component/selectable","owner":"component","description":"Selectable DOM elements","archived":false,"fork":false,"pushed_at":"2013-05-13T15:52:42.000Z","size":144,"stargazers_count":26,"open_issues_count":5,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-03T07:05:48.449Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"legalthings/angular-signature","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-07T03:31:14.000Z","updated_at":"2024-05-21T18:20:51.000Z","dependencies_parsed_at":"2022-09-10T11:22:40.263Z","dependency_job_id":null,"html_url":"https://github.com/component/selectable","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/component/selectable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fselectable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fselectable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fselectable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fselectable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/selectable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fselectable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270523875,"owners_count":24600186,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-16T00:18:56.242Z","updated_at":"2025-08-15T04:30:51.194Z","avatar_url":"https://github.com/component.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# selectable\n\n  Selectable DOM elements.\n\n  ![dom element selection js component](http://i.cloudup.com/iZqb9fzgccE.png)\n\n## Installation\n\n    $ component install component/selectable\n\n## Example\n\n```html\n\u003cul id=\"pets\"\u003e\n  \u003cli data-name=\"tobi\"\u003eTobi\u003c/li\u003e\n  \u003cli data-name=\"loki\"\u003eLoki\u003c/li\u003e\n  \u003cli data-name=\"jane\"\u003eJane\u003c/li\u003e\n  \u003cli data-name=\"abby\"\u003eAbby\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cscript\u003e\n  var selectable = require('selectable');\n  var selection = selectable('#pets \u003e li');\n\n  selection.on('change', function(e){\n    for (var i = 0; i \u003c e.selected.length; i++) {\n      console.log(e.selected[i].getAttribute('data-name'));\n    }\n  });\n\u003c/script\u003e\n```\n\n## API\n\n### Selectable(selector, el)\n\n  Make elements with the given `selector` selectable, with optional context `el`.\n\n### Selectable#select(els)\n\n  Add the given `els` to the selection.\n\n### Selectable#deselect(els)\n\n  Remove the given `els` from the selection.\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fselectable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fselectable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fselectable/lists"}