屬性列表
名稱 |
數(shù)據(jù)類型 |
作用描述 |
默認(rèn)值 |
disabled |
boolean |
是否禁用該字段。 |
false |
readonly |
boolean |
組件是否只讀。 |
false |
editable |
boolean |
用戶是否可以直接在字段中鍵入文本。 |
true |
iconCls |
string |
顯示在文本框中的背景圖標(biāo)。 |
null |
iconAlign |
string |
圖標(biāo)的位置。可選值:'left', 'right' 。 |
right |
placeholder |
string |
顯示在輸入框中的提示消息。 |
|
multiline |
boolean |
是否是一個(gè)多行文本框。 |
false |
invalid |
boolean |
該值是否無效。 |
false |
tabindex |
number |
選項(xiàng)卡索引值。 |
null |
cls |
string |
組件樣式類。 |
null |
inputCls |
string |
輸入框樣式類。 |
null |
inputStyle |
Object |
輸入框內(nèi)聯(lián)樣式。 |
null |
inputid |
string |
輸入框id屬性值。 |
null |
字段列表
名稱 |
類型 |
作用描述 |
focused |
boolean |
返回聚焦?fàn)顟B(tài)。 |
事件列表
名稱 |
參數(shù) |
作用描述 |
focus |
none |
當(dāng)組件獲得焦點(diǎn)時(shí)觸發(fā)。 |
blur |
none |
當(dāng)組件失去焦點(diǎn)時(shí)觸發(fā)。 |
方法列表
名稱 |
參數(shù) |
返回值 |
作用描述 |
focus |
none |
void |
焦點(diǎn)的組件。 |
blur |
none |
void |
失去焦點(diǎn)的組件。 |
注:
- 繼承: ValueAccessorBase 。
更多建議: