Summary

A user can input text into the edit box which can then be retrieved using the EditBox:GetText() function.


Properties

Font

The name of one of the predefined fonts to use in your EditBox. For example, "GameFontNormal".


Letters

The maximum number of letters which can be entered in this EditBox. Zero means no character limit.


BlinkSpeed

The speed of cursor blinking, interval in seconds between "blinks".


Numeric

If it is true, then only digits 0-9 can be entered in this EditBox.


Password

If it is true, then asterisks will be displayed instead of whatever text you enter.


MultiLine

Multi-line EditBox.


HistoryLines

Number of lines to keep as a "history" for this editbox. You can cycle through editbox' history with arrows Up and Down (or Alt+Up, Alt+Down if attribute ignoreArrows set to true).


AutoFocus

If it is true, then this EditBox will automatically receive keyboard focus when it is displayed.


IgnoreArrows

If it is false, then pressing arrows on keyboard will move cursor around the EditBox. If set to true, then EditBox will ignore arrows and they will instead turn around your character in game world. In this case you can still move text cursor around your editbox with Alt-arrows.


Example

The standard template is the InputBoxTempate(left Editbox). There is an other template the ChatFrameEditBoxTemplate what can be used for mainly chat because of behavior inheritance. Type something to one of editboxes and the typed text will be shown in the other.