W3Cschool
恭喜您成為首批注冊用戶
獲得88經驗值獎勵
名稱 | 數據類型 | 作用描述 | 默認值 |
---|---|---|---|
value | string | 綁定到組件的值。 | null |
values | array | 當多行設置為true時,此屬性是生效的。 | null |
name | string | 字段組的名稱。 | null |
disabled | boolean | 是否禁用該字段。 | false |
inputId | string | 復選框的id屬性值。 | null |
multiple | boolean | True綁定多個值,而不是布爾值。 | false |
名稱 | 參數 | 作用描述 |
---|---|---|
onChange | checked | 檢查或未選中組件時觸發(fā)。 |
注:
- 繼承: FieldBase 。
{
this.state.fruits.map(fruit => {
return (
<div key={fruit}>
<CheckBox inputId={fruit} multiple value={fruit} values={this.state.values}
onChange={this.handleChange.bind(this)}></CheckBox>
<Label htmlFor={fruit} style={{margin:'0 5px'}}>{fruit}</Label>
</div>
)
})
}
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯系方式:
更多建議: