![](/img/trans.png)
[英]How do I disable and re-enable a submit type button with a slider style checkbox?
[英]How to disable and enable this checkbox slider button from angular code
我想在角度方法中禁用和启用此按钮是否有可能,如果是,如何
<div class="payment-history">
<div class="payment-history-item">
<div class="payment-history-left">
<div class="payment-history-title">Email</div>
</div>
<div class="payment-history-right ml-auto">
<label class="switch">
<input type="checkbox">
<span class="slider round"></span>
</label>
</div>
</div>
您可以使用 [disabled] 输入来禁用复选框并从控制器更新 isDisabled 值
<input [disabled]="isDisabled" = type="checkbox">
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.