W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
名稱 | 數(shù)據(jù)類型 | 作用描述 | 默認(rèn)值 |
---|---|---|---|
value | string | 綁定到組件的值。 | null |
values | array | 當(dāng)多行設(shè)置為true時(shí),此屬性是生效的。 | null |
name | string | 字段組的名稱。 | null |
disabled | boolean | 是否禁用該字段。 | false |
inputId | string | 復(fù)選框的id屬性值。 | null |
multiple | boolean | True綁定多個(gè)值,而不是布爾值。 | false |
名稱 | 參數(shù) | 作用描述 |
---|---|---|
onChange | checked | 檢查或未選中組件時(shí)觸發(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號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: