README.md in mootools-plus-0.1.6 vs README.md in mootools-plus-0.2.0
- old
+ new
@@ -6,22 +6,20 @@
Add the gem in your `Gemfile`:
```ruby
group :assets do
- gem 'mootools-plus', '~> 0.1.0'
+ gem 'mootools-plus', '~> 0.2.0'
end
```
Then `bundle install` it.
Add mootools-plus to the asset pipeline:
```javascript
-//= require mootools-plus/logger
-//= require mootools-plus/array
-//= require mootools-plus/element
+//= require mootools-plus
```
Enjoy!
## Documentation
@@ -139,9 +137,48 @@
Alias of Array#filter
#### `selectOne(fn, bind) → other`
Alias of Array#filterOne
+
+### ui.Dropdown
+
+#### Use
+
+```haml
+%div
+ %header
+ %a= 'Pipo'
+ %ol
+ %li
+ %a= 'item 1'
+ %li
+ %a= 'item 2'
+ %li
+ %a= 'item 3'
+ %li
+ %a= 'item 4'
+ %li
+ %a= 'item 5'
+ %li
+ %a= 'item 6'
+```
+
+```javascript
+new ui.Dropdown($$('div')[0])
+```
+
+[Example](http://jsfiddle.net/9BZw9/)
+
+#### Options
+
+```javascript
+{
+ panel: {
+ openAtStart: false // Set to true to open the dropdown at initialization
+ }
+}
+```
## Changelog
View [CHANGELOG](https://github.com/caedes/mootools-plus/blob/stable/CHANGELOG.md) of the latest stable version.