https://github.com/erizet/selectable-items-component
https://github.com/erizet/selectable-items-component
javascipt webcomponent
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/erizet/selectable-items-component
- Owner: erizet
- Created: 2024-02-02T13:47:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-06T09:52:09.000Z (over 1 year ago)
- Last Synced: 2025-02-01T18:11:19.233Z (4 months ago)
- Topics: javascipt, webcomponent
- Language: JavaScript
- Homepage: https://erizet.github.io/selectable-items-component/
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Selectable items
A simple web component to mark selected elements in a list.## Usage
```
One
Two
Three
```
Attribute `selector` is used to select items within the child elements, and `selection-class` is the CSS class to add/remove when an element is selected.