- 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
GridLayout
A layout which divides a context into several evenly-sized grid cells. If dimensions are provided, the grid is evenly subdivided with children cells representing their own context, otherwise the cellSize property is used to compute dimensions so that items of cellSize will fit.
Overview
Options
dimensions
gutterSize
transition
Methods
setOptions
sequenceFrom
getSize
GridLayout(options)
Constructor Parameters
options
Options
An object of configurable options.
dimensions
Array.Number
A two value array which specifies the amount of columns and rows in your Gridlayout instance.
gutterSize
Array.Number
A two-value array which specifies size of the horizontal and vertical gutters between items in the grid layout.
transition
Transition
The transiton that controls the Gridlayout instance's reflow.
Methods
render()Private
Generate a render spec from the contents of this component.
Returns
Object
Render spec for this component
setOptions(options)
Patches the GridLayout instance's options with the passed-in ones.
Parameters
options
Options
An object of configurable options for the GridLayout instance.
sequenceFrom(sequence)
Sets the collection of renderables under the Gridlayout instance's control.
Parameters
sequence
Array|ViewSequence
Either an array of renderables or a Famous viewSequence.
getSize()
Returns the size of the grid layout.
Returns
Array
Total size of the grid layout.
commit(context)Private
Apply changes from this component to the corresponding document element. This includes changes to classes, styles, size, content, opacity, origin, and matrix transforms.
Parameters
context
Context
commit context