- 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
Methods
ViewSequence(options)
Constructor Parameters
options
Object|Array
Options object, or content array.
Methods
getPrevious()
Return ViewSequence node previous to this node in the list, respecting looping if applied.
Returns
getNext()
Return ViewSequence node next after this node in the list, respecting looping if applied.
Returns
indexOf()
Return index of the provided item in the backing array
Returns
getIndex()
Return index of this ViewSequence node.
Returns
toString()
Return printable version of this ViewSequence node.
Returns
unshift(value)
Add one or more objects to the beginning of the sequence.
Parameters
push(value)
Add one or more objects to the end of the sequence.
Parameters
splice(index, howMany, value)
Remove objects from the sequence
Parameters
swap(other)
Exchange this element's sequence position with another's.
Parameters
get()
Return value of this ViewSequence node.
Returns
getSize()
Call getSize() on the contained View.
Returns
render()Private
Generate a render spec from the contents of this component. Specifically, this will render the value at the current index.