Permalink
Browse files

docs: add events and mutiple option

  • Loading branch information...
1 parent 272353c commit da5c8c7c1ecaad3d79e796a5797abcbfca9be5e5 @retrofox retrofox committed Dec 19, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 Readme.md
View
@@ -54,6 +54,11 @@ dropdown
## API
### Dropdown(ref, options)
+ *
+ * Emits:
+ * `focus` when an item is really selected
+ * `check` when an item is checked (multiple mode)
+ * `uncheck` when an item is unchecked (multiple mode)
Create a new `Dropdown` associated to `ref` element. Also support the follow
options:
@@ -63,6 +68,7 @@ dropdown
- select: `{String}` Initial focused item
- selectable: `{Boolean}` Defines if dropdown is selectable (default true)
- classname: `{String}` Additional class(es) to menu element container
+ - muliple: `{Boolean}` allow check more than one item
```js
var Dropdown = require('dropdown');

0 comments on commit da5c8c7

Please sign in to comment.