A UITextInput control is used to display, or accept as input, a single line of text. Programmers make extensive use of the UITextInput control to let the user view or enter a large amount of text. A UITextInput object is used to display text on a form or to get user input while a program is running.
Parameter Rules
bindParent: | The refChain to the design where your target resides. |
Example: | R.rootModel |
bindTarget: | The bind target is the name of the rule you want as the target. |
Example: | "Customer" |
sequenceNo: | The sorting number within the UIContainer or UIFieldset that the design will appear. |
Example: | 2 |
title: | Sets the title if desired. Leave blank if title is not needed. |
Example: | "Customer" |
titleLocation: | Sets the title location. Choices (“top”, “left”). |
Example: | “top” |
Choices: | (“top”, “left”) |
visibility: | Controls whether the UITextInput is visible or not. |
Example: | return R.rootModel.Content =="Table Configurator"?'visible':'hidden' |
Choices: | “visible | hidden” |
Mixins
UITitleMixin
UIInputMixin
UIControlMixin
UIStyleMixin
BaseNode
BaseModel
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
bindParent |
any |
undefined |
UI |
Cached |
bindTarget |
string |
“” |
UI |
Cached |
sequenceNo |
number |
0 |
UI |
Cached |
title |
string |
“” |
UI |
Cached |
titleLocation |
string |
“” |
||
fontSize |
string |
"normal" |
Style |
Cached |
visibility |
string |
"visible" |
Style |
Cached
|
Project Example:
In your kBridge Examples Projects folder open the project called ‘MyTable’.
Reference Location:
“world.mytable.tableui.tableui0.inputscontainer.inputscontainer0.contentfieldset.contentfieldset0.contentpanel.contentpanel0.contentcontainer.contentcontainer0.customertext.customertext0”
Link: https://knowledgebridge.engineer/projects
Open the MyTable project.
Press the UI start icon to start the User Interface.
A rule was created in the root (MyTable) called ‘Customer.’ The rule is a string type with a default of ‘John Allen’.
When new text (‘John Smith’) is entered in the UITextInput it sets the ‘Customer’ to the new value.
In the example image below, “John Smith” was entered. You can tell that the rule is getting its value from the UI by the ‘world.mytable’ in the Owner column.
Also the text is in bold.