φ 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

ViewSequence

Helper object used to iterate through items sequentially. Used in views that deal with layout. A ViewSequence object conceptually points to a node in a linked list.

Overview

Options
index
array
_
loop
Methods
getPrevious
getNext
indexOf
getIndex
toString
unshift
push
splice
swap
get
getSize

ViewSequence(options)

Constructor Parameters

options

Object|Array

Options object, or content array.

index
Number
starting index.
array
Number
Array of elements to populate the ViewSequence
_
Object
Optional backing store (internal
loop
Boolean
Whether to wrap when accessing elements just past the end (or beginning) of the sequence.
Methods

getPrevious()

Return ViewSequence node previous to this node in the list, respecting looping if applied.

Returns
ViewSequence
previous node.

getNext()

Return ViewSequence node next after this node in the list, respecting looping if applied.

Returns
ViewSequence
previous node.

indexOf()

Return index of the provided item in the backing array

Returns
Number
index or -1 if not found

getIndex()

Return index of this ViewSequence node.

Returns
Number
index

toString()

Return printable version of this ViewSequence node.

Returns
String
this index as a string

unshift(value)

Add one or more objects to the beginning of the sequence.

Parameters
value
...Object
arguments array of objects

push(value)

Add one or more objects to the end of the sequence.

Parameters
value
...Object
arguments array of objects

splice(index, howMany, value)

Remove objects from the sequence

Parameters
index
Number
starting index for removal
howMany
Number
how many elements to remove
value
...Object
arguments array of objects

swap(other)

Exchange this element's sequence position with another's.

Parameters
other
ViewSequence
element to swap with.

get()

Return value of this ViewSequence node.

Returns
Object
value of thiss

getSize()

Call getSize() on the contained View.

Returns
Array.Number
[width, height]

render()Private

Generate a render spec from the contents of this component. Specifically, this will render the value at the current index.

Returns
Number
Render spec for this component
Branding Terms Privacy Jobs © Famous Industries, Inc. 2015