https://github.com/loadingio/ldfolder
simple folder widget
https://github.com/loadingio/ldfolder
Last synced: 21 days ago
JSON representation
simple folder widget
- Host: GitHub
- URL: https://github.com/loadingio/ldfolder
- Owner: loadingio
- Created: 2020-12-15T08:34:51.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-19T15:55:41.000Z (about 4 years ago)
- Last Synced: 2025-08-09T09:45:27.619Z (6 months ago)
- Language: LiveScript
- Size: 691 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ldfolder
folder dynamics.
## Usage
include required js and css file, then:
# initialization
folder = new ldfolder({root: ''});
# manually toggle 'some-subnode' on.
folder.toggle('some-subnode', true);
## Constructor Options
- `root`: DOM root for this ldfolder.
- `exclusive`: only one folder can be opened at a time if set to true.
- default false.
## Sample ldfd structure
.ldfd
.ldfd-item
.ldfd
.ldfd-item.ldfd-toggle
.ldfd-menu
.ldfd-item
.ldfd-item
## Customization
custom highlight style by overwritting `.ldfolder.highlight` and `.ldfolder.active` style.
## License
MIT