选择器
eui-switchbutton
继承
ValueAccessorBase
用法
<div class="fitem">
<label [for]="s1">接收邮件:</label>
<eui-switchbutton #s1 [(ngModel)]="received"></eui-switchbutton>
</div>
<div class="fitem">
<label [for]="s2">分享网络:</label>
<eui-switchbutton #s2 [(ngModel)]="shared"></eui-switchbutton>
</div>
<div class="fitem">
<label [for]="s3">订阅:</label>
<eui-switchbutton #s3 [(ngModel)]="subscribed"></eui-switchbutton>
</div>
输入
名称 | 类型 | 描述 | 默认 |
---|---|---|---|
value | boolean | 绑定到按钮的值。 | null |
onText | string | 按钮状态为on时的文本值。 | ON |
offText | string | 按钮关闭状态时的文本值。 | OFF |
handleText | string | 中心句柄的文本值。 | null |
disabled | boolean | 定义是否为禁用按钮。 | false |
readonly | boolean | 定义按钮是否只读。 | false |