Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
optional
|
Fires:
- event:opening
- event:closing
- event:opened
- event:closed
- event:location
Members
-
defaults for Drawer
-
automatically open and close the drawer based on acceleration or click
-
Bar drawer element
-
change bottom value of drawer
-
use this to add content to the div
-
Main drawer element
-
animate time for opening drawer on click
-
change left value of drawer
-
location of the drawer relative to the edge
-
minimum velocity (pixels/millisecond) for opening and closing after a drag
-
change right value of drawer
-
number of pixels before move starts after a mousedown or touchstart
-
maximum time in milliseconds to use when calculating acceleration
-
change top value of drawer
Methods
-
close the drawer
Name Type Description noAnimate
boolean optional -
open the drawer
Name Type Description noAnimate
boolean optional -
toggle the drawer (close if open, and open if closed)
Name Type Description noAnimate
boolean optional do not animate
-
call this to update the contents or after the contents of the drawer are updated (handles sizing)
Name Type Description content
string optional
Events
-
trigger when drawer is fully closed because of UI interaction or drawer.close() finishing
Type:
- object
Properties:
Name Type Description drawer
Drawer -
trigger when drawing is closing from UI click or calling drawer.close()
Type:
- object
Properties:
Name Type Description drawer
Drawer -
trigger when drawer's location changes because of UI interaction or drawer.close/open
Type:
- object
Properties:
Name Type Description location
number of drawer
drawer
Drawer -
trigger when drawer is fully opened because of UI interaction or drawer.open() finishing
Type:
- object
Properties:
Name Type Description drawer
Drawer -
trigger when the drawer is opening from UI click or calling drawer.open()
Type:
- object
Properties:
Name Type Description drawer
Drawer