φ 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

TabBar

A view for transitioning between two surfaces based on a 'on' and 'off' state

Overview

Options
Methods
select
deselect
isSelected
setOptions
getSize

TabBar(options)

Constructor Parameters

options

Object

overrides of default options

Methods

select(suppressEvent)

Transition towards the 'on' state and dispatch an event to listeners to announce it was selected. Accepts an optional argument, `suppressEvent`, which, if truthy, prevents the event from being dispatched.

Parameters
suppressEvent
Boolean
When truthy, prevents the widget from emitting the 'select' event.

deselect(suppressEvent)

Transition towards the 'off' state and dispatch an event to listeners to announce it was deselected. Accepts an optional argument, `suppressEvent`, which, if truthy, prevents the event from being dispatched.

Parameters
suppressEvent
Boolean
When truthy, prevents the widget from emitting the 'deselect' event.

isSelected()

Return the state of the button

Returns
Boolean
selected state

setOptions(options)

Override the current options

Parameters
options
Object
JSON

getSize()

Return the size defined in the options object

Returns
Array
two element array [height, width]

render()Private

Generate a render spec from the contents of this component.

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