Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

loop-grid-selector

Range selector for loop-grid.

API

var Selector = require('loop-grid-selector')

var selection = Selector(shape)

Returns an extended instance of ObservGrid with shape specified.

selector.start(inputGrid, done)

Pass in an observable ArrayGrid. done will be called on stop or before subsequent start.

Any truthy values will trigger a selection. Simultaneous true values will trigger range selection. selection will have .set(selectedIndexes) called on every change.

selector.clear()

Sets selection to an empty array.

selector.stop()

Release watch of inputGrid and call done.

About

Range selector for loop-grid [now included in the loop-drop-app repo]

Resources

Packages

No packages published
You can’t perform that action at this time.