Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mobius1-selectable

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobius1-selectable

UI Selectable plugin without the bloat of jQuery and jQuery UI.

  • 0.6.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

Selectable

npm version license Average time to resolve an issue Percentage of issues still open

Inspired by the jQuery UI Selectable plugin. Functionality and options are identical to the jQuery UI version with some additions and performance enhancements.

Selectable mimics the Windows file / directory behaviour, i.e. click and / or drag to select items, hold CTRL to select multiple or hold SHIFT to select consecutive groups of items.

Works in most modern deskop and mobile browsers including IE9+ as well a touchscreen devices.

Selectable is still in active development and therefore the API is in constant flux until v1.0.0. Check back regularly for any changes and make sure you have the latest version installed.

Demo | Documentation | Changelog


Demos

Tables


Install

Bower

bower install mobius1-selectable --save

npm

npm install mobius1-selectable --save

Browser

Grab the file from one of the CDNs and include it in your page:

https://unpkg.com/mobius1-selectable@latest/selectable.min.js

or

https://cdn.jsdelivr.net/npm/mobius1-selectable@latest/selectable.min.js

You can replace latest with the required release number if needed.


Initialise the plugin:

const selectable = new Selectable(options);

Options

See Documentation


Public Methods

See Documentation


Events

// Intitialise Selectable
const selectable = new Selectable(options);

// Listen for the 'selectable.XXXX' event
selectable.on('selectable.XXXX', function(/* params */) {
    // Do something when 'selectable.XXXX' fires
});
NameFiredParams
selectable.initwhen the instance is ready
selectable.enablewhen the instance is enabled
selectable.disablewhen the instance is disabled
selectable.starton mousedown / touchstart (within container)element - the item that was clicked on
selectable.dragwhen dragging the lassocoords - the coords of the lasso
selectable.endon mouseup / touchend (within container)items - the current selection of item(s)
selectable.selectwhen an item is selecteditem - the selected item
selectable.unselectwhen an item is unselecteditem - the unselected item
selectable.updatewhen the instance is updated
selectable.recalculatewhen the item coords are recalculated

Copyright © 2017 Karl Saunders | BSD & MIT license

FAQs

Package last updated on 05 Nov 2017

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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc