Class: TextInput

TextInput

An UI text object

new TextInput (options)

Name Type Description
options PUXI.ITextInputOptions
Name Type Default Description
value string

Text content

multiLine boolean false optional

Multiline input

style PIXI.TextStyle

Style used for the Text

background PIXI.UI.SliceSprite | PIXI.UI.Sprite

will be used as background for input

selectedColor String | Array '#ffffff' optional

Fill color of selected text

selectedBackgroundColor String '#318cfa' optional

BackgroundColor of selected text

width Number 150 optional

width of input

height Number 20 optional

height of input

padding Number 3 optional

input padding

paddingTop Number 0 optional

input padding

paddingBottom Number 0 optional

input padding

paddingLeft Number 0 optional

input padding

paddingRight Number 0 optional

input padding

tabIndex Number 0 optional

input tab index

tabGroup Number | String 0 optional

input tab group

maxLength Number 0 optional

0 = unlimited

caretWidth Number 1 optional

width of the caret

lineHeight Number 0 optional

0 = inherit from text

Extends

  • PIXI.UI.InputBase