Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobius1 committed Nov 3, 2017
1 parent df3d47f commit 72f25ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ Items returned by the instance are objects of the following format:
| `enable()` | | | Enable the instance. |
| `update()` | | | Updates the instance. Can be used if new items are added or old ones removed. All item coords are updated as well. |
| `recalculate()` | | | Recalculates the coords for all valid items. If the dimensions of the item / items change then call this method otherwise the lasso will not select items correctly. |
| `select()` | `Mixed` | `Mixed` | Select an item or items. You can pass a `Number` representing the index of the item, a reference to the `HTMLElement` node, the `Object` as it appears in the `items` array or an `Array` of numbers / nodes / objects. |
| `unselect()` | `Mixed` | `Mixed` | Same as `select()`, but the item or items are unselected. |
| `select(items)` | `Mixed` | `Mixed` | Select an item or items. You can pass a `Number` representing the index of the item, a reference to the `HTMLElement` node, the `Object` as it appears in the `items` array or an `Array` of numbers / nodes / objects. |
| `unselect(items)` | `Mixed` | `Mixed` | Same as `select()`, but the item or items are unselected. |
| `selectAll()` | | | Select all valid items. |
| `clear()` | | | Deselects all valid items. |
| `add()` | `Object` | | Add a new item. Must me a valid `HTMLElement` node. |
| `remove()` | `Mixed` | | Removes an item or items. Can be an index, node, item or collection. |
| `getItem()` | `Mixed` | `Object` | Returns a reference to the item if found or `false` if not. You can pass the same mixed argument as with `select()` and `unselect()`. |
| `add(node)` | `Object` | | Add a new item. Must me a valid `HTMLElement` node. |
| `remove(items)` | `Mixed` | | Removes an item or items. Can be an index, node, item or collection. |
| `getItem(items)` | `Mixed` | `Object` | Returns a reference to the item if found or `false` if not. You can pass the same mixed argument as with `select()` and `unselect()`. |
| `getItems()` | | `Array` | Returns an `Array` of all items. |
| `getNodes()` | | `Array` | Returns an `Array` of all `HTMLElement` nodes. |
| `getSelectedItems()` | | `Array` | Returns an `Array` of selected items. |
Expand Down

0 comments on commit 72f25ed

Please sign in to comment.