- 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
TextareaSurface
A Famo.us surface in the form of an HTML textarea element. This extends the Surface class.
Overview
Options
Methods
TextareaSurface(options)
Constructor Parameters
options
Object
overrides of default options
Methods
setPlaceholder(str)
Set placeholder text. Note: Triggers a repaint.
Parameters
Returns
focus()
Focus on the current input, pulling up the keyboard on mobile.
Returns
focus()
Blur the current input, hiding the keyboard on mobile.
Returns
setValue(str)
Set the value of textarea. Note: Triggers a repaint next tick.
Parameters
Returns
getValue()
Get the value of the inner content of the textarea (e.g. the entered text)
Returns
setName(str)
Set the name attribute of the element. Note: Triggers a repaint next tick.
Parameters
Returns
getName()
Get the name attribute of the element.
Returns
setWrap(str)
Set the wrap of textarea. Note: Triggers a repaint next tick.
Parameters
Returns
setColumns(num)
Set the number of columns visible in the textarea. Note: Overridden by surface size; set width to true. (eg. size: [true, *]) Triggers a repaint next tick.
Parameters
Returns
setRows(num)
Set the number of rows visible in the textarea. Note: Overridden by surface size; set height to true. (eg. size: [*, true]) Triggers a repaint next tick.
Parameters
Returns
deploy(target)Private
Place the document element this component manages into the document.