Socket
Book a DemoInstallSign in
Socket

ldfolder

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldfolder

simple folder widget

latest
Source
npmnpm
Version
0.0.9
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

ldfolder

folder dynamics.

Usage

include required js and css file, then:

# initialization
folder = new ldfolder({root: '<root-of-some-ldfd-tree>'});

# 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

FAQs

Package last updated on 19 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts