Input
Defined in: ui/Input.ts:275
A highly customizable input component with mobile/touch support Input
Example
Section titled “Example”// Basic text inputconst basicInput = new Input({ minWidth: 400, placeholder: { text: 'Enter text' }, padding: [12, 15]});
// Password input with validationconst passwordInput = new Input({ type: 'password', minWidth: 400, placeholder: { text: 'Enter password' }, maxLength: 20, regex: /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/});
// Phone number input with validationconst phoneInput = new Input({ type: 'tel', regex: /^1?-?\(?([2-9][0-9]{2})\)?[-. ]?([2-9][0-9]{2})[-. ]?([0-9]{4})$/, error: { input: { fill: 0xff0000 }, bg: { fill: 0xf5e0df } }});
Extends
Section titled “Extends”Container
<Application
<DataSchema
,ActionContext
,Action
,Renderer
>,this
> &ISignalContainer
&IInteractive
&IFocusable
<this
>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Input(
options
,isClone
,clone
):Input
Defined in: ui/Input.ts:356
Parameters
Section titled “Parameters”options
Section titled “options”Partial
<InputProps
>
isClone
Section titled “isClone”boolean
= false
null
| Input
Returns
Section titled “Returns”Input
Overrides
Section titled “Overrides”Focusable(Interactive(WithSignals(Container))).constructor
Properties
Section titled “Properties”__dill_pixel_method_binding_root
Section titled “__dill_pixel_method_binding_root”__dill_pixel_method_binding_root:
boolean
=true
Defined in: display/Container.ts:68
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).__dill_pixel_method_binding_root
add:
object
Defined in: mixins/factory/Factory.ts:6
animatedSprite()
Section titled “animatedSprite()”animatedSprite: (
props?
) =>AnimatedSprite
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<AnimatedSpriteProps
>
Returns
Section titled “Returns”bitmapText()
Section titled “bitmapText()”bitmapText: (
props?
) =>BitmapText
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<TextProps
>
Returns
Section titled “Returns”BitmapText
button()
Section titled “button()”button: (
props?
) =>Button
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<ButtonProps
>
Returns
Section titled “Returns”container()
Section titled “container()”container: (
props?
) =>Container
<Application
<DataSchema
,ActionContext
,Action
,Renderer
>>
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<ContainerProps
>
Returns
Section titled “Returns”Container
<Application
<DataSchema
, ActionContext
, Action
, Renderer
>>
existing()
Section titled “existing()”existing: <
TEntity
>(entity
,props?
) =>TEntity
Type Parameters
Section titled “Type Parameters”TEntity
Section titled “TEntity”TEntity
Parameters
Section titled “Parameters”entity
Section titled “entity”TEntity
props?
Section titled “props?”Partial
<ExistingProps
>
Returns
Section titled “Returns”TEntity
flexContainer()
Section titled “flexContainer()”flexContainer: (
props?
) =>FlexContainer
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<FlexContainerProps
>
Returns
Section titled “Returns”graphics()
Section titled “graphics()”graphics: (
props?
) =>Graphics
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<GraphicsProps
>
Returns
Section titled “Returns”Graphics
htmlText()
Section titled “htmlText()”htmlText: (
props?
) =>HTMLText
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<HTMLTextProps
>
Returns
Section titled “Returns”HTMLText
particleContainer()
Section titled “particleContainer()”particleContainer: (
props?
) =>ParticleContainer
<Application
<DataSchema
,ActionContext
,Action
,Renderer
>>
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<ParticleContainerProps
>
Returns
Section titled “Returns”ParticleContainer
<Application
<DataSchema
, ActionContext
, Action
, Renderer
>>
spine()
Section titled “spine()”spine: (
props?
) =>Spine
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<SpineProps
>
Returns
Section titled “Returns”spineAnimation()
Section titled “spineAnimation()”spineAnimation: <
ANames
,A
>(props?
) =>SpineAnimation
<ANames
,A
>
Type Parameters
Section titled “Type Parameters”ANames
Section titled “ANames”ANames
extends string
= string
A
extends Application
<DataSchema
, ActionContext
, Action
, Renderer
> = Application
<DataSchema
, ActionContext
, Action
, Renderer
>
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<SpineProps
>
Returns
Section titled “Returns”SpineAnimation
<ANames
, A
>
sprite()
Section titled “sprite()”sprite: (
props?
) =>Sprite
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<SpriteProps
>
Returns
Section titled “Returns”Sprite
text()
Section titled “text()”text: (
props?
) =>Text
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<TextProps
>
Returns
Section titled “Returns”Text
texture()
Section titled “texture()”texture: (
props?
) =>Texture
=resolveTexture
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<TextureProps
>
Returns
Section titled “Returns”Texture
tilingSprite()
Section titled “tilingSprite()”tilingSprite: (
props?
) =>TilingSprite
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<TilingSpriteProps
>
Returns
Section titled “Returns”TilingSprite
toaster()
Section titled “toaster()”toaster: (
toasterConfig?
,defaultToastConfig
) =>Toaster
Parameters
Section titled “Parameters”toasterConfig?
Section titled “toasterConfig?”Partial
<ToasterConfig
>
defaultToastConfig?
Section titled “defaultToastConfig?”Partial
<ToastConfig
> = {}
Returns
Section titled “Returns”uiCanvas()
Section titled “uiCanvas()”uiCanvas: (
props?
) =>UICanvas
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<UICanvasFactoryProps
>
Returns
Section titled “Returns”svg(
props
):Svg
Parameters
Section titled “Parameters”WithRequiredProps
<SvgProps
, "ctx"
>
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).add
bg:
Graphics
Defined in: ui/Input.ts:307
Background graphics container
caret:
Container
Defined in: ui/Input.ts:313
Caret (cursor) container
clone:
null
|Input
=null
Defined in: ui/Input.ts:359
error:
boolean
Defined in: ui/Input.ts:331
Current error state
focusEnabled
Section titled “focusEnabled”focusEnabled:
boolean
Defined in: plugins/focus/FocusManagerPlugin.ts:20
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).focusEnabled
input:
Text
Defined in: ui/Input.ts:319
Text input container
isClone
Section titled “isClone”isClone:
boolean
=false
Defined in: ui/Input.ts:358
isFocused
Section titled “isFocused”isFocused:
boolean
Defined in: plugins/focus/FocusManagerPlugin.ts:18
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).isFocused
isKeyDown
Section titled “isKeyDown”isKeyDown:
boolean
Defined in: plugins/focus/FocusManagerPlugin.ts:19
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).isKeyDown
make:
object
Defined in: mixins/factory/Factory.ts:7
animatedSprite()
Section titled “animatedSprite()”animatedSprite: (
props?
) =>AnimatedSprite
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<AnimatedSpriteProps
>
Returns
Section titled “Returns”bitmapText()
Section titled “bitmapText()”bitmapText: (
props?
) =>BitmapText
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<TextProps
>
Returns
Section titled “Returns”BitmapText
button()
Section titled “button()”button: (
props?
) =>Button
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<ButtonProps
>
Returns
Section titled “Returns”container()
Section titled “container()”container: (
props?
) =>Container
<Application
<DataSchema
,ActionContext
,Action
,Renderer
>>
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<ContainerProps
>
Returns
Section titled “Returns”Container
<Application
<DataSchema
, ActionContext
, Action
, Renderer
>>
existing()
Section titled “existing()”existing: <
TEntity
>(entity
,props?
) =>TEntity
Type Parameters
Section titled “Type Parameters”TEntity
Section titled “TEntity”TEntity
Parameters
Section titled “Parameters”entity
Section titled “entity”TEntity
props?
Section titled “props?”Partial
<ExistingProps
>
Returns
Section titled “Returns”TEntity
flexContainer()
Section titled “flexContainer()”flexContainer: (
props?
) =>FlexContainer
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<FlexContainerProps
>
Returns
Section titled “Returns”graphics()
Section titled “graphics()”graphics: (
props?
) =>Graphics
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<GraphicsProps
>
Returns
Section titled “Returns”Graphics
htmlText()
Section titled “htmlText()”htmlText: (
props?
) =>HTMLText
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<HTMLTextProps
>
Returns
Section titled “Returns”HTMLText
particleContainer()
Section titled “particleContainer()”particleContainer: (
props?
) =>ParticleContainer
<Application
<DataSchema
,ActionContext
,Action
,Renderer
>>
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<ParticleContainerProps
>
Returns
Section titled “Returns”ParticleContainer
<Application
<DataSchema
, ActionContext
, Action
, Renderer
>>
spine()
Section titled “spine()”spine: (
props?
) =>Spine
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<SpineProps
>
Returns
Section titled “Returns”spineAnimation()
Section titled “spineAnimation()”spineAnimation: <
ANames
,A
>(props?
) =>SpineAnimation
<ANames
,A
>
Type Parameters
Section titled “Type Parameters”ANames
Section titled “ANames”ANames
extends string
= string
A
extends Application
<DataSchema
, ActionContext
, Action
, Renderer
> = Application
<DataSchema
, ActionContext
, Action
, Renderer
>
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<SpineProps
>
Returns
Section titled “Returns”SpineAnimation
<ANames
, A
>
sprite()
Section titled “sprite()”sprite: (
props?
) =>Sprite
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<SpriteProps
>
Returns
Section titled “Returns”Sprite
text()
Section titled “text()”text: (
props?
) =>Text
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<TextProps
>
Returns
Section titled “Returns”Text
texture()
Section titled “texture()”texture: (
props?
) =>Texture
=resolveTexture
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<TextureProps
>
Returns
Section titled “Returns”Texture
tilingSprite()
Section titled “tilingSprite()”tilingSprite: (
props?
) =>TilingSprite
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<TilingSpriteProps
>
Returns
Section titled “Returns”TilingSprite
toaster()
Section titled “toaster()”toaster: (
toasterConfig?
,defaultToastConfig
) =>Toaster
Parameters
Section titled “Parameters”toasterConfig?
Section titled “toasterConfig?”Partial
<ToasterConfig
>
defaultToastConfig?
Section titled “defaultToastConfig?”Partial
<ToastConfig
> = {}
Returns
Section titled “Returns”uiCanvas()
Section titled “uiCanvas()”uiCanvas: (
props?
) =>UICanvas
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial
<UICanvasFactoryProps
>
Returns
Section titled “Returns”svg(
props
):Svg
Parameters
Section titled “Parameters”WithRequiredProps
<SvgProps
, "ctx"
>
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).make
onAnimationComplete
Section titled “onAnimationComplete”onAnimationComplete:
Signal
<(entity
) =>void
>
Defined in: mixins/animated.ts:21
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onAnimationComplete
onAnimationStart
Section titled “onAnimationStart”onAnimationStart:
Signal
<(entity
) =>void
>
Defined in: mixins/animated.ts:19
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onAnimationStart
onAnimationUpdate
Section titled “onAnimationUpdate”onAnimationUpdate:
Signal
<(entity
) =>void
>
Defined in: mixins/animated.ts:20
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onAnimationUpdate
onBlur
Section titled “onBlur”onBlur:
Signal
<(focusable
) =>void
>
Defined in: plugins/focus/FocusManagerPlugin.ts:36
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onBlur
onDestroy
Section titled “onDestroy”onDestroy:
Signal
<() =>void
>
Defined in: display/Container.ts:67
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onDestroy
onFocus
Section titled “onFocus”onFocus:
Signal
<(focusable
) =>void
>
Defined in: plugins/focus/FocusManagerPlugin.ts:35
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onFocus
onFocusIn
Section titled “onFocusIn”onFocusIn:
Signal
<(focusable
) =>void
>
Defined in: plugins/focus/FocusManagerPlugin.ts:33
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onFocusIn
onFocusOut
Section titled “onFocusOut”onFocusOut:
Signal
<(focusable
) =>void
>
Defined in: plugins/focus/FocusManagerPlugin.ts:34
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onFocusOut
onInteraction()
Section titled “onInteraction()”onInteraction: (
eventName
) =>InteractionSignal
Defined in: mixins/interaction.ts:16
Parameters
Section titled “Parameters”eventName
Section titled “eventName”keyof FederatedEventMap | keyof GlobalFederatedEventMap
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onInteraction
options
Section titled “options”options:
InputOptions
Defined in: ui/Input.ts:301
Input configuration options
placeholder
Section titled “placeholder”placeholder:
Text
Defined in: ui/Input.ts:325
Placeholder text container
signalConnections
Section titled “signalConnections”signalConnections:
SignalConnections
Defined in: mixins/signals.ts:9
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).signalConnections
onGlobalChildAdded
Section titled “onGlobalChildAdded”
static
onGlobalChildAdded:Signal
<(child
) =>void
>
Defined in: display/Container.ts:81
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onGlobalChildAdded
onGlobalChildRemoved
Section titled “onGlobalChildRemoved”
static
onGlobalChildRemoved:Signal
<(child
) =>void
>
Defined in: display/Container.ts:82
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).onGlobalChildRemoved
Accessors
Section titled “Accessors”animationContext
Section titled “animationContext”Get Signature
Section titled “Get Signature”get animationContext():
undefined
|string
Defined in: display/Container.ts:72
Returns
Section titled “Returns”undefined
| string
Set Signature
Section titled “Set Signature”set animationContext(
value
):void
Defined in: display/Container.ts:75
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).animationContext
Get Signature
Section titled “Get Signature”get app():
A
Defined in: display/Container.ts:111
Get the application instance.
Returns
Section titled “Returns”A
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).app
caretPosition
Section titled “caretPosition”Get Signature
Section titled “Get Signature”get caretPosition():
number
Defined in: ui/Input.ts:453
Gets the current caret (cursor) position
Returns
Section titled “Returns”number
The caret position in pixels from the left
isValid
Section titled “isValid”Get Signature
Section titled “Get Signature”get isValid():
boolean
Defined in: ui/Input.ts:479
Gets whether the current input value is valid
Returns
Section titled “Returns”boolean
True if the input is valid
Set Signature
Section titled “Set Signature”set regex(
value
):void
Defined in: ui/Input.ts:470
Sets the validation regex
Parameters
Section titled “Parameters”RegExp
The regular expression to use for validation
Returns
Section titled “Returns”void
selectionRect
Section titled “selectionRect”Get Signature
Section titled “Get Signature”get selectionRect():
null
|Rectangle
Defined in: ui/Input.ts:462
Gets the current selection rectangle
Returns
Section titled “Returns”null
| Rectangle
The selection rectangle or null if no selection
Get Signature
Section titled “Get Signature”get value():
string
Defined in: ui/Input.ts:500
Gets the current input value
Returns
Section titled “Returns”string
The current value
Set Signature
Section titled “Set Signature”set value(
value
):void
Defined in: ui/Input.ts:508
Sets the input value
Parameters
Section titled “Parameters”string
The value to set
Returns
Section titled “Returns”void
Methods
Section titled “Methods”_checkPointerDownOutside()
Section titled “_checkPointerDownOutside()”_checkPointerDownOutside(
e
):void
Defined in: ui/Input.ts:599
Parameters
Section titled “Parameters”FederatedPointerEvent
Returns
Section titled “Returns”void
_focusDomElement()
Section titled “_focusDomElement()”_focusDomElement(
selection?
):void
Defined in: ui/Input.ts:576
Parameters
Section titled “Parameters”selection?
Section titled “selection?”number
Returns
Section titled “Returns”void
_triggerFocusAndSelection()
Section titled “_triggerFocusAndSelection()”_triggerFocusAndSelection(
selection?
):void
Defined in: ui/Input.ts:582
Parameters
Section titled “Parameters”selection?
Section titled “selection?”number
Returns
Section titled “Returns”void
addColoredBackground()
Section titled “addColoredBackground()”addColoredBackground(
colorOrConfig
,alpha
):Sprite
Defined in: display/Container.ts:115
Parameters
Section titled “Parameters”colorOrConfig
Section titled “colorOrConfig”number
| Partial
<BackgroundConfig
>
number
= 1
Returns
Section titled “Returns”Sprite
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).addColoredBackground
added()
Section titled “added()”added():
void
Defined in: ui/Input.ts:544
Called when the component is added to the display list Shows the cursor if this is a clone
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Focusable(Interactive(WithSignals(Container))).added
addSignalConnection()
Section titled “addSignalConnection()”addSignalConnection(…
args
):void
Defined in: mixins/signals.ts:13
Parameters
Section titled “Parameters”…SignalConnection
[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).addSignalConnection
animate()
Section titled “animate()”animate(
animationProps
,instance?
):Tween
Defined in: mixins/animated.ts:23
Parameters
Section titled “Parameters”animationProps
Section titled “animationProps”instance?
Section titled “instance?”any
Returns
Section titled “Returns”Tween
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).animate
animateFrom()
Section titled “animateFrom()”animateFrom(
animationProps
,instance?
):Tween
Defined in: mixins/animated.ts:25
Parameters
Section titled “Parameters”animationProps
Section titled “animationProps”instance?
Section titled “instance?”any
Returns
Section titled “Returns”Tween
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).animateFrom
animateFromTo()
Section titled “animateFromTo()”animateFromTo(
fromProps
,toProps
,instance?
):Tween
Defined in: mixins/animated.ts:27
Parameters
Section titled “Parameters”fromProps
Section titled “fromProps”toProps
Section titled “toProps”instance?
Section titled “instance?”any
Returns
Section titled “Returns”Tween
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).animateFromTo
animateSequence()
Section titled “animateSequence()”animateSequence(
sequences
,instance?
):Timeline
Defined in: mixins/animated.ts:33
Parameters
Section titled “Parameters”sequences
Section titled “sequences”instance?
Section titled “instance?”any
Returns
Section titled “Returns”Timeline
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).animateSequence
blur()
Section titled “blur()”blur():
void
Defined in: plugins/focus/FocusManagerPlugin.ts:44
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).blur
bob(
config?
,instance?
):Tween
Defined in: mixins/animated.ts:50
Parameters
Section titled “Parameters”config?
Section titled “config?”duration?
Section titled “duration?”number
intensity?
Section titled “intensity?”number
instance?
Section titled “instance?”any
Returns
Section titled “Returns”Tween
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).bob
childAdded()
Section titled “childAdded()”childAdded(
child
):void
Defined in: display/Container.ts:176
Parameters
Section titled “Parameters”Container
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).childAdded
childRemoved()
Section titled “childRemoved()”childRemoved(
child
):void
Defined in: display/Container.ts:191
Parameters
Section titled “Parameters”Container
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).childRemoved
click()
Section titled “click()”click():
void
Defined in: plugins/focus/FocusManagerPlugin.ts:42
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).click
connectAction()
Section titled “connectAction()”connectAction(…
args
):void
Defined in: mixins/signals.ts:15
Parameters
Section titled “Parameters”…SignalConnection
[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).connectAction
connectSignal()
Section titled “connectSignal()”connectSignal(…
args
):void
Defined in: mixins/signals.ts:14
Parameters
Section titled “Parameters”…SignalConnection
[]
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).connectSignal
destroy()
Section titled “destroy()”destroy():
void
Defined in: ui/Input.ts:844
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Focusable(Interactive(WithSignals(Container))).destroy
destroyAnimations()
Section titled “destroyAnimations()”destroyAnimations():
void
Defined in: mixins/animated.ts:39
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).destroyAnimations
drawBg()
Section titled “drawBg()”drawBg(
width
,height
):void
Defined in: ui/Input.ts:828
Parameters
Section titled “Parameters”number
= ...
height
Section titled “height”number
= ...
Returns
Section titled “Returns”void
drawSelection()
Section titled “drawSelection()”drawSelection():
void
Defined in: ui/Input.ts:816
Returns
Section titled “Returns”void
focusIn()
Section titled “focusIn()”focusIn():
void
Defined in: ui/Input.ts:572
Focuses the input Creates the DOM element and shows the cursor
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Focusable(Interactive(WithSignals(Container))).focusIn
focusOut()
Section titled “focusOut()”focusOut():
void
Defined in: ui/Input.ts:612
Blurs (unfocuses) the input Removes the DOM element and hides the cursor
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Focusable(Interactive(WithSignals(Container))).focusOut
getFocusArea()
Section titled “getFocusArea()”getFocusArea():
Bounds
Defined in: ui/Input.ts:1264
Gets the focusable area bounds
Returns
Section titled “Returns”Bounds
The bounds of the input container
Overrides
Section titled “Overrides”Focusable(Interactive(WithSignals(Container))).getFocusArea
getFocusPosition()
Section titled “getFocusPosition()”getFocusPosition():
null
|PointLike
Defined in: plugins/focus/FocusManagerPlugin.ts:50
Returns
Section titled “Returns”null
| PointLike
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).getFocusPosition
getFocusSize()
Section titled “getFocusSize()”getFocusSize():
null
|PointLike
Defined in: plugins/focus/FocusManagerPlugin.ts:52
Returns
Section titled “Returns”null
| PointLike
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).getFocusSize
handleClick()
Section titled “handleClick()”handleClick(
e?
):void
Defined in: ui/Input.ts:556
Handles click/tap events on the input Creates the DOM element and positions the caret
Parameters
Section titled “Parameters”FederatedEvent
<UIEvent
| PixiTouch
>
The pointer event
Returns
Section titled “Returns”void
isAnimationPlaying()
Section titled “isAnimationPlaying()”isAnimationPlaying():
boolean
Defined in: mixins/animated.ts:43
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).isAnimationPlaying
pauseAnimations()
Section titled “pauseAnimations()”pauseAnimations():
void
Defined in: mixins/animated.ts:35
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).pauseAnimations
pulse()
Section titled “pulse()”pulse(
config?
,instance?
):Tween
Defined in: mixins/animated.ts:48
Parameters
Section titled “Parameters”config?
Section titled “config?”duration?
Section titled “duration?”number
intensity?
Section titled “intensity?”number
times?
Section titled “times?”number
instance?
Section titled “instance?”any
Returns
Section titled “Returns”Tween
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).pulse
removed()
Section titled “removed()”removed():
void
Defined in: display/Container.ts:189
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).removed
resetBg()
Section titled “resetBg()”resetBg():
void
Defined in: ui/Input.ts:536
Redraws the background graphics
Returns
Section titled “Returns”void
resize()
Section titled “resize()”resize():
void
Defined in: ui/Input.ts:526
Resizes the input component Updates the clone overlay position if it exists
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Focusable(Interactive(WithSignals(Container))).resize
resumeAnimations()
Section titled “resumeAnimations()”resumeAnimations():
void
Defined in: mixins/animated.ts:37
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).resumeAnimations
reverseAnimation()
Section titled “reverseAnimation()”reverseAnimation():
void
Defined in: mixins/animated.ts:41
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).reverseAnimation
shake()
Section titled “shake()”shake(
config?
,instance?
):Tween
Defined in: mixins/animated.ts:46
Parameters
Section titled “Parameters”config?
Section titled “config?”duration?
Section titled “duration?”number
intensity?
Section titled “intensity?”number
times?
Section titled “times?”number
instance?
Section titled “instance?”any
Returns
Section titled “Returns”Tween
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).shake
update()
Section titled “update()”update():
void
Defined in: ui/Input.ts:616
Update the container. This method is meant to be overridden by subclasses.
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”Focusable(Interactive(WithSignals(Container))).update
childAdded()
Section titled “childAdded()”
static
childAdded(child
):void
Defined in: display/Container.ts:84
Parameters
Section titled “Parameters”Container
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).childAdded
childRemoved()
Section titled “childRemoved()”
static
childRemoved(child
):void
Defined in: display/Container.ts:88
Parameters
Section titled “Parameters”Container
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Focusable(Interactive(WithSignals(Container))).childRemoved
Events
Section titled “Events”onChange
Section titled “onChange”onChange:
Signal
<(detail
) =>void
>
Defined in: ui/Input.ts:288
Emitted when the input value changes onChange
onEnter
Section titled “onEnter”onEnter:
Signal
<(detail
) =>void
>
Defined in: ui/Input.ts:281
Emitted when the Enter key is pressed onEnter
onError
Section titled “onError”onError:
Signal
<(detail
) =>void
>
Defined in: ui/Input.ts:295
Emitted when validation fails onError