Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

loopjs/loop-grid-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published