Description
Creates an <input type="text"> element and associated wrapper elements styled for XNAT.
Spawner Widget Name
kind: panel.input.text
JavaScript Method
XNAT.ui.panel.input.text()
Configuration Options
textInput:
kind: panel.input.text
name: fooInput
label: Input Ur Txt Here
id: foo-input
value: ?? XNAT.data.fooValue
validation: required alphanum onblur
before: "Text or HTML to insert before the input element"
after:
smallTxt:
tag: small.msg
Properties
|
Name |
Value |
Description |
|---|---|---|
|
kind |
panel.input.text |
Spawner widget type - creates an <input> element with other necessary elements for proper styling and functionality. |
|
name |
(string) |
Name attribute for this input, which must match the property name used for data loading and submission. |
|
label |
(string) |
Label element for input. |
|
id |
(string) |
Value for spawned element's id attribute. |
|
value |
(string, obj, js, url) |
Existing value for input - can be an explicit value as a string, a value looked up from a JavaScript object property
* "What's with the wacky syntax?" Given this expression:
|
|
validation |
(string) |
String containing options as a space-separated list for validating the input. |
|
before |
(string/objects) |
Elements that will render before the panel element. This is useful for inserting ad-hoc content if needed. |
|
after |
(string/objects) |
Elements that will render after the panel element. |