that the user can enter text into.
AcceptsImeInput |
Allow IME input when this is focused. |
AllowEmojiReplace |
Whether to allow automatic replacement of emoji codes with their actual unicode emoji characters. See Sandbox.UI.Emoji. |
AutoComplete |
If you hook a method up here we'll do autocomplete on it.
Return a list if strings for given string input. |
CaretPosition |
|
CharacterRegex |
If set, will block the input of any character that doesn't match. Will also set Sandbox.UI.TextEntry.HasValidationErrors accordingly. |
Disabled |
Is the text entry disabled?
If disabled, will add a "disabled" class and prevent focus. |
HasContent |
|
HasValidationErrors |
If true then this control has validation errors and the input shouldn't be accepted. |
HistoryCookie |
If set, the history of this text entry will be stored and restored using this key in the local Sandbox.Internal.GlobalGameNamespace.Cookie. |
HistoryMaxItems |
Maximum amount of items Sandbox.UI.TextEntry.AddToHistory(System.String) will keep.
Oldest items will be discarded as new ones are added. |
Icon |
If set, will display a material icon at the end of the text entry. |
IconPanel |
The Sandbox.UI.IconPanel that displays Sandbox.UI.TextEntry.Icon |
Label |
The Sandbox.UI.TextEntry.Label that contains the text of this text entry.
TODO PAINDAY: This should be protected or internal, no? |
MaxLength |
If set, visually signals when the input text is longer than this value. Will also set Sandbox.UI.TextEntry.HasValidationErrors accordingly. |
MaxValue |
If we're numeric, this is the highest numeric value allowed |
MinLength |
If set, visually signals when the input text is shorter than this value. Will also set Sandbox.UI.TextEntry.HasValidationErrors accordingly. |
MinValue |
If we're numeric, this is the lowest numeric value allowed |
Multiline |
Makes it possible to enter new lines into the text entry. (By pressing the Enter key, which no longer acts as the submit key) |
NumberFormat |
Affects formatting of the text when Sandbox.UI.TextEntry.Numeric is enabled. Accepts any format that is supported by System.Single.ToString(System.String). See examples here. |
Numeric |
When set to true, ensures only numeric values can be typed. Also applies Sandbox.UI.TextEntry.FixNumeric on text. |
OnTextEdited |
Called when the text of this text entry is changed. |
Placeholder |
Text to display when the text entry is empty. Typically a very short description of the expected contents or function of the text entry. |
Prefix |
If set, will display given text before the text entry box. |
PrefixLabel |
The Sandbox.UI.TextEntry.Label that shows Sandbox.UI.TextEntry.Prefix text. |
StringRegex |
If set, Sandbox.UI.TextEntry.HasValidationErrors will return true if doesn't match regex. |
Suffix |
If set, will display given text after the text entry box. |
SuffixLabel |
The Sandbox.UI.TextEntry.Label that shows Sandbox.UI.TextEntry.Suffix text. |
Text |
Access to the raw text in the text entry. |
TextLength |
|
Value |
The value of the text entry. Returns Sandbox.UI.TextEntry.Text, but does special logic when setting text. |