Description
|
Render the HTML to represent an input box.
|
Parameters
|
string
|
The control's label
|
string
|
The control's name
|
string
|
The control's default value
|
options
|
json object with all options to render the control:
type
|
Define the type of the input box, default is text. (hidden|text|number|date)
|
placeholder
|
Define the placeholder for the input, by default the control's tittle is used to.
|
licon
|
Define the left icon displayed into the button (You can use a fontawesome name)
|
ricon
|
Define the right icon displayed into the button (You can use a fontawesome name)
|
lbutton
|
The field has an action button at the left side like an option icon
|
rbutton
|
The field has an action button at the right side like a search icon
|
readonly
|
Define the control as read-only
|
disabled
|
Define the control as disabled
|
error
|
Error if the user has selected nothing
|
|
Return
|
string
|
The HTML to create the control
|
Example:
ui.input( "User Name", "name", "", {
placeholder:"Type your name",
licon:"fa-user",
rbutton:"fa-search"
} );