All Projects → Mobius1 → Selectable

Mobius1 / Selectable

Licence: MIT license
Touch enabled selectable plugin inspired by the jQuery UI widget.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Selectable

Ninaselectionview
Way to select your buttons.
Stars: ✭ 87 (-33.59%)
Mutual labels:  select, drag, selection
Dragselectrecyclerview
TouchListener that can be attached to any RecyclerView and handles multi selection for you
Stars: ✭ 371 (+183.21%)
Mutual labels:  drag, selection
vue-drag-select
基于Vue的仿原生操作系统鼠标拖拽选择
Stars: ✭ 63 (-51.91%)
Mutual labels:  select, drag
Selecto
Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
Stars: ✭ 822 (+527.48%)
Mutual labels:  select, selection
Selection
✨ Selection - A simple and lightweight library to add a visual way of selecting elements, just like on your Desktop. Zero dependencies. Full mobile and scroll support.
Stars: ✭ 1,371 (+946.56%)
Mutual labels:  select, selection
React Ds
🔥 React Drag To Select component (tiny, touch friendly, and no dependencies!)
Stars: ✭ 153 (+16.79%)
Mutual labels:  select, drag
Ngx Drag To Select
A lightweight, fast, configurable and reactive drag-to-select component for Angular 6 and beyond
Stars: ✭ 262 (+100%)
Mutual labels:  select, drag
React Multi Select
A Multi Select component built with and for React
Stars: ✭ 111 (-15.27%)
Mutual labels:  select, selection
Tail.select
Create beautiful, functional and extensive (Multi) Select Fields with pure, vanilla JavaScript.
Stars: ✭ 235 (+79.39%)
Mutual labels:  select, selection
flutter-package-selection menu
A flutter widget, highly customizable, to select an item from a list of items.
Stars: ✭ 32 (-75.57%)
Mutual labels:  select, selection
TKinterDesigner
TKinterDesigner is a tool software to develop the Python User Interface for Python programmer.
Stars: ✭ 663 (+406.11%)
Mutual labels:  drag
form-data-json
A zero dependency, cross browser library to easily get or set/manipulate form input values as/from a json object.
Stars: ✭ 37 (-71.76%)
Mutual labels:  select
use-gesture
👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.
Stars: ✭ 6,624 (+4956.49%)
Mutual labels:  drag
toggler
Atom plugin - Toggle words and symbols
Stars: ✭ 21 (-83.97%)
Mutual labels:  selection
XamarinItemTouchHelper
Basic example of using ItemTouchHelper to add drag & drop and swipe-to-dismiss to RecyclerView for Xamarin
Stars: ✭ 35 (-73.28%)
Mutual labels:  drag
nhn next gameserver lab 2017 chatServer
NHN Next의 2017년 게임서버 과정 수업에 사용할 채팅 서버. select 기반
Stars: ✭ 32 (-75.57%)
Mutual labels:  select
ionic-selectable-demo
Ionic SelectSearchable Demo.
Stars: ✭ 22 (-83.21%)
Mutual labels:  select
vue-component-creater-ui
拖拽式Vue组件代码生成编辑器(VCC)
Stars: ✭ 383 (+192.37%)
Mutual labels:  drag
react-native-select-multiple
☑️ A customiseable FlatList that allows you to select multiple rows
Stars: ✭ 155 (+18.32%)
Mutual labels:  select
selectr
✅ The coolest jQuery select plugin you've never seen
Stars: ✭ 19 (-85.5%)
Mutual labels:  select

Selectable

Maintenance Code Climate maintainability npm license GitHub release npm GitHub issues GitHub issues

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.

  • No dependencies
  • Lightweight
  • IE9+
  • Touch enabled

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.

Pull requests are welcome!

Demo | Documentation | Changelog | Table Plugin


Demos

Integration with other libs


Install

Bower

bower install selectable.js --save

npm

npm install selectable.js --save

Browser

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

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

or

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

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


Default

This will create a new instance and add any element found in the DOM with the "ui-selectable" class name and make them selectable.

const selectable = new Selectable();

Custom filter

If you don't add the "ui-selectable" class name to your items then simply tell the instance what to look for instead with the filter option:

const selectable = new Selectable({
   filter: ".my-classname"
});

// or

const selectable = new Selectable({
   filter: document.querySelectorAll(".my-classname")
});

NOTE: <a> elements will not work currently. See: #31

No items

If your document doesn't have any selectable items yet, e.g. they're added asynchronously via an ajax call, then simply create a new instance as normal, then use the add() method when they're available:

const selectable = new Selectable();

// items added to DOM ...

// then...
selectable.add(items);

Options

See Options


Public Methods

See Public Methods


Events

See Events


If this project helps you then you can grab me a coffee or beer to say thanks.

paypal


Copyright © 2017 Karl Saunders | BSD & MIT license

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].