Socket
Socket
Sign inDemoInstall

checkbox-list

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    checkbox-list

checkbox list


Version published
Weekly downloads
9
increased by50%
Maintainers
1
Install size
16.7 kB
Created
Weekly downloads
 

Readme

Source

<checkbox-list>

A web component for listed checkboxes and optionally a "check all" checkbox

Installation

  1. Install using npm or Bower

    npm install checkbox-list
    
    bower install checkbox-list
    
  2. Use HTML Import

    In your <head>:

    <link rel="import" href="checkbox-list/dist/index.html">
    
  3. Use CheckboxListElement element in HTML or programmability

    HTML

    <checkbox-list>
        <label><input checkbox-list-all="true" type="checkbox">All</label>
        <label><input type="checkbox">Checking</label>
        <label><input type="checkbox">Saving</label>
    </checkbox-list>
    

    JavaScript

    var list = document.createElement('input', 'checkbox-list');
    
    var all = document.createElement('input');
    all.setAttribute('type', 'checkbox');
    all.setAttribute('checkbox-list-all', 'true');
    
    var checking = document.createElement('input');
    checking.setAttribute('type', 'checkbox');
    
    var saving = document.createElement('input');
    saving.setAttribute('type', 'checkbox');
    
    list.appendChild(all);
    list.appendChild(checking);
    list.appendChild(saving);
    
    document.body.appendChild(list);
    
    

Development

Make sure you have npm and Gulp installed. Following commands are available:

gulp

Make a new build

gulp serve

Starts a server and watches for changes to reload the browser.

License

MIT

Keywords

FAQs

Last updated on 01 Apr 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc