Items


Retrieving Items

Multiple items can be retrieved with various methods:

getItems()              // returns an array of all items
getSelectedItems()      // returns an array all currently selected items
getUnSelectedItems()    // returns an array all currently unselected items

Each item returned from these methods is stored as an object in the following format:

{
    node: HTMLElement,        // the element node
    rect: DOMRect,            // the element node's bounding box
    startselected: Boolean    // item was already selected on mousedown / touchstart
    selected: Boolean,        // item is currently selected
    selecting: Boolean,       // item is currently being selected
    deselecting: Boolean      // item is currently being deselected
}

See Also

Last updated