Widget_TextInput
The widget_TextInput is a special module use that use and enhance the HTML text input.
How to Initialize any Widgets?
To add a widgets call AddWidget function from GUIs members that own this function.
Class Details
Enumerations:
| Name | List | Description | 
| inputType | 
 | This is used to defined the input type in SetType. | 
Main Functions
Initialization & Main Functions
| Name | Arguments | Return | Description | 
| Init | 
 | VOID | This function Initialized every part of the viewer : HMTL, CSS, Data, Events, etc... It will be generated in the defined ID and all HTML IDs used for this will start by the RegistryName defined in arguments. | 
| Launch | 
 | VOID | Launch all systems required by the this and will call all children launch. | 
| SetType | 
 | THIS | Change the input type. | 
Text Functions
| Name | Arguments | Return | Description | 
| SetLang | THIS | Assign a Lang class to this widgets to make the function SetTextHolder_L usable. | |
| SetTextHolder_L | 
 | THIS | Set the text holder of this widgets (will not work if no Lang is set). | 
| SetTextHolder | 
 | THIS | Set the text holder to the widget. Note: to use Lang class use SetTextHolder_L function. | 
| GetText | 
 | String | Get the entered text. | 
| SetText | 
 | THIS | Change the input text (not the text holder). | 
| SetFont | 
 | THIS | Change text font family. | 
Interaction Functions
| Name | Arguments | Return | Description | 
| SetFocus | 
 | THIS | Add events on "focusin" or "focusout". | 
| SetOnTextChanged | 
 | THIS | Set up the event "input" to detect when the text has been changed. | 
Overrides / Inherited Functions:
Setters Functions
| Name | Arguments | Return | Description | 
| AddLayout | 
 | Same as parent. | |
| AddWidget | 
 | Same as parent. | |
| Destroy | 
 | None | Same as parent. | 
| Clear | 
 | None | Same as parent. | 
Design functions
Positions and general design:
| Name | Arguments | Return | Description | 
| Visible | 
 | This | Same as parent. | 
| SetSizePosition | 
 | This | Same as parent. | 
| GetPosition | 
 | @CSS String | Same as parent. | 
| GetSize | 
 | Class: 
 | Same as parent. | 
| SetPadding | 
 | This | Same as parent. | 
| SetMargin | 
 | This | Same as parent. | 
| AddVerticalOverflow | 
 | This | Same as parent. | 
| AddHorizontalOverflow | 
 | This | Same as parent. | 
| SetRotation | 
 | This | Same as parent. | 
Style:
| Name | Arguments | Return | Description | 
| SetBackgroundColor | 
 | This | Same as parent. | 
| SetBackgroundImage | 
 | VOID | Same as parent. | 
| SetBGImageRepeat | 
 | This | Same as parent. | 
| SetBGImageSizeAndPosition | 
 | This | Same as parent. | 
| SetOpacity | 
 | None | Same as parent. | 
Contour:
| Name | Arguments | Return | Description | 
| SetBorder | 
 | This | Same as parent. | 
| RemoveOutline | 
 | This | Same as parent. | 
Font:
| Name | Arguments | Return | Description | 
| SetFontSize | 
 | This | Same as parent. | 
Interaction:
| Name | Arguments | Return | Description | 
| ForceInteraction | 
 | This | Same as parent. | 
| AddHoveredEvent | 
 | VOID | Same as parent. | 
| AddPressedEvent | 
 | VOID | Same as parent. | 
| Movable | 
 | VOID | Same as parent. | 
| trigger | 
 | VOID | Same as parent. | 
Private Details
All private details are usable but its recommended to not use any of those. It might modify the proper functioning of the class.
Variables (Members):
Main Members
| Name | Type | Default Value | Description | 
| parent | undefined | Parent class of this widget | |
| id | String | undefined | Global HMTL Id of the viewer (# + name). | 
| registryName | String | undefined | Name of this widget. | 
| basedId | String | undefined | Where it is located is the existing DOM (its parent). | 
| widgetType | Hold the type of this widget. | ||
| layout | null | Hold this widget layout (if created). | 
Information
| Name | Type | Default Value | Description | 
| lang | null | Hold the Lang class used for the text. | |
| isFocus | Boolean | undefined | Use to check if the widget is actually focused. | 
Overrides / Inherited functions:
| Name | Arguments | Return | Description | 
| Shift | 
 | None | Same as parent. | 
Compatibility
LANGUAGE CLASS: Compatible.
Created with the Personal Edition of HelpNDoc: Easily create Web Help sites