- core
- Context
- ElementAllocator
- ElementOutput
- Engine
- Entity
- EventEmitter
- EventHandler
- Group
- Modifier
- OptionsManager
- RenderNode
- Scene
- SpecParser
- Transform
- View
- ViewSequence
- events
- EventArbiter
- EventFilter
- EventMapper
- inputs
- Accumulator
- GenericSync
- MouseSync
- PinchSync
- RotateSync
- ScaleSync
- ScrollSync
- TouchSync
- TouchTracker
- TwoFingerSync
- math
- Matrix
- Quaternion
- Random
- Utilities
- Vector
- modifiers
- Draggable
- Fader
- ModifierChain
- StateModifier
- physics
- PhysicsEngine
- physics/bodies
- Body
- Circle
- Particle
- Rectangle
- physics/constraints
- Surface
- Collision
- Constraint
- Curve
- Distance
- Snap
- Wall
- Walls
- physics/forces
- Drag
- Force
- Repulsion
- RotationalDrag
- RotationalSpring
- Spring
- VectorField
- physics/integrators
- SymplecticEuler
- surfaces
- CanvasSurface
- ContainerSurface
- ImageSurface
- InputSurface
- TextareaSurface
- VideoSurface
- transitions
- CachedMap
- Easing
- MultipleTransition
- SnapTransition
- SpringTransition
- Transitionable
- TransitionableTransform
- TweenTransition
- WallTransition
- utilities
- KeyCodes
- Timer
- Utility
- views
- ContextualView
- Deck
- DrawerLayout
- EdgeSwapper
- FlexibleLayout
- Flipper
- GridLayout
- HeaderFooterLayout
- Lightbox
- RenderController
- ScrollContainer
- Scroller
- Scrollview
- SequentialLayout
- widgets
- NavigationBar
- TabBar
DrawerLayout
A layout which will arrange two renderables: a featured content, and a concealed drawer. The drawer can be revealed from any side of the content (left, top, right, bottom) by dragging the content. A @link{Sync} must be piped in to recieve user input. Events: broadcasts: 'open', 'close' listens to: 'update', 'end'
Overview
Options
Methods
DrawerLayout(options)
Constructor Parameters
options
Object
An object of configurable options
Methods
setOptions(options)
Patches the DrawerLayout instance's options with the passed-in ones.
Parameters
open(transition, callback)
Reveals the drawer with a transition Emits an 'open' event when an opening transition has been committed to.
Parameters
close(transition, callback)
Conceals the drawer with a transition Emits a 'close' event when an closing transition has been committed to.
Parameters
setPosition(position, transition, callback)
Sets the position in pixels for the content's displacement
Parameters
getPosition()
Gets the position in pixels for the content's displacement
Returns
setProgress(progress, transition, callback)
Sets the progress (between 0 and 1) for the content's displacement
Parameters
getProgress()
Gets the progress (between 0 and 1) for the content's displacement
Returns
toggle(transition)
Toggles between open and closed states
Parameters
reset(transition)
Resets to last state of being open or closed
Parameters
isOpen()
Returns if drawer is committed to being open or closed
Returns
render()Private
Generates a Render Spec from the contents of this component