<textInput>要素 |
![]() |
ネームスペース: | http://xmlns.oracle.com/uix/ui |
派生元: | <ui:formElement>要素 |
グループ: | UIX Components |
要素の型: | UINode |
構文 |
![]() |
<textInput
[ columns="unsignedInt"
]
[ maximumLength="unsignedInt"
]
[ onChange="string"
]
[ onSelect="string"
]
[ required="ui:requiredType"
]
[ rows="unsignedInt"
]
[ secret="boolean"
]
[ text="string"
]
[ wrap="ui:wrap" ] [ data:onBlurValidater ="data binding to oracle.cabo.ui.validate.ClientValidater" ] [ data:onSubmitValidater ="data binding to oracle.cabo.ui.validate.ClientValidater" ] > <onBlurValidater></onBlurValidater> <onSubmitValidater></onSubmitValidater> </textInput>
説明 |
![]() |
<textInput>要素は、ブラウザ入力テキスト項目を作成します。行数により、このコントロールはテキストフィールド(単一行コントロールの場合)またはテキスト領域(複数行コントロールの場合)のいずれかにマップされます。パスワードなど、表示中に入力をユーザーから隠す必要がある場合、secretプロパティが使用されます。 DecimalValidaterが設定されている場合、テキストは数値形式(ほとんどのロケールで右揃え)で入力されます。
例 |
![]() |
デフォルトのテキストを持つ簡単なテキスト入力ボックス。
<form name="myform" method="GET">
<contents>
<textInput text="Some text " name="textbtn1"/>
</contents>
</form>
非表示の入力テキストが入る長さ25文字のテキスト・ボックスを示す、より興味深い例。
<form name="myform" method="GET">
<contents>
<textInput name="SecretTextVar"
columns="25"
required="no"
secret="true"
text="secret text:"/>
</contents>
</form>
折り返された入力テキスト3行が表示される、垂直スクロールバー付きのテキスト入力ボックス。テキストが変更された場合、アラートが表示されます。
<form name="myform" method="GET">
<contents>
<textInput name="ChangeNotifiedTextBox"
rows="3"
wrap="soft"
onChange="alert('ChangeNotifiedTextBox has changed.')"
text="Alert on change."/>
</contents>
</form>
内容が数値形式のテキスト入力(ほとんどのロケールで右揃え)。ユーザーがボックスから離れる際に、バリデータにより内容が数値であることが確認されます。
<form name="myform" method="GET">
<contents>
<textInput name="numeric format" required="yes">
<onBlurValidater>
<decimal/>
</onBlurValidater>
<contents/>
</textInput>
</contents>
</form>
属性 |
![]() |
子要素 |
![]() |
|