φ Famo.us University Famo.us/Angular Docs Help Blog Download
  • 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

FlexibleLayout

A layout which divides a context into sections based on a proportion of the total sum of ratios. FlexibleLayout can either lay renderables out vertically or horizontally.

Overview

Options
direction
transition
ratios
Methods
setOptions
sequenceFrom
setRatios
getSize

FlexibleLayout(options)

Constructor Parameters

options

Options

An object of configurable options.

direction
Number
Direction the FlexibleLayout instance should lay out renderables.
transition
Transition
The transiton that controls the FlexibleLayout instance's reflow.
ratios
Ratios
The proportions for the renderables to maintain
Methods

render()Private

Generate a render spec from the contents of this component.

Returns
Object
Render spec for this component

setOptions(options)

Patches the FlexibleLayouts instance's options with the passed-in ones.

Parameters
options
Options
An object of configurable options for the FlexibleLayout instance.

sequenceFrom(sequence)

Sets the collection of renderables under the FlexibleLayout instance's control. Also sets the associated ratio values for sizing the renderables if given.

Parameters
sequence
Array
An array of renderables.

setRatios(ratios)

Sets the associated ratio values for sizing the renderables.

Parameters
ratios
Array
Array of ratios corresponding to the percentage sizes each renderable should be

getSize()

Gets the size of the context the FlexibleLayout exists within.

Returns
Array
Size of the FlexibleLayout in pixels [width, height]

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
Branding Terms Privacy Jobs © Famous Industries, Inc. 2015