0
앵글 부트 스트랩 토글을 사용 중입니다. https://github.com/ziscloud/angular-bootstrap-toggle#demo 사용하지 않도록 설정하는 방법을 찾으려고합니다.앵글 부트 스트랩 토글을 비활성화하는 방법
앵글 부트 스트랩 토글을 사용 중입니다. https://github.com/ziscloud/angular-bootstrap-toggle#demo 사용하지 않도록 설정하는 방법을 찾으려고합니다.앵글 부트 스트랩 토글을 비활성화하는 방법
ng-disable을 사용하여 angular-bootstrap-toggle에서 토글 클래스를 비활성화하려면 issue을 확인할 수 있습니다.
다른 방법으로는 이것을 해킹 할 수있는 방법이 있습니다. ng-class = "{disabled : your_condition_here}"를 (를) 귀하의 Google에 추가하십시오. 아래의 코드처럼
<toggle ng-model="toggleValue" ng-change="changed()" ng-class="{disabled : true}"></toggle>
및 CSS 파일에 아래 추가
toggle.disabled {
cursor: not-allowed;
pointer-events: none;
box-shadow: none;
opacity: 0.65;
}