Socket
Book a DemoInstallSign in
Socket

optionificator

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optionificator

Create a set of HTML inputs for manipulating a set of options

1.0.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Optionificator

Create a set of HTML inputs for manipulating a set of options.

Supported inputs are slider, checkbox, text, button, and you can also add unfiltered html if you want.

See a demo at http://arnemart.github.io/optionificator/.

Installation

$ npm install optionificator

Or just download the script and drop it in your html.

Usage

var optionificator = require('optionificator');

var o = optionificator.optionificate([
    ['slider', 'slider1', 'Change a value', 50, 20, 80, 5],
    ['slider', 'slider2', 'Change another value'],
    ['checkbox', 'check1', 'I am checkbox', true],
    ['checkbox', 'check2', 'I am another checkbox', 'false'],
    ['text', 'text1', 'Type something'],
    ['button', 'Click me', function() { alert('Thank you for clicking'); }],
    ['html', '<strong>I am html</strong>']
]);

document.body.appendChild(o);

optionificator.listen(console.log.bind(console));

License

MIT

Keywords

html

FAQs

Package last updated on 13 Mar 2015

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.