strong-arc
Version:
A visual suite for the StrongLoop API Platform
13 lines (12 loc) • 498 B
HTML
<button type="button" class="ui-switch {{classes}}"
ng-class="{
'ui-switch-left': switches[0].isActive,
'ui-switch-right': switches[1].isActive
}"
ng-click="setActive( switches[0].isActive ? switches[1] : switches[0] )">
<span class="ui-switch-label" ng-show="labels">{{switches[0].label}}</span>
<span class="ui-switch-toggle">
<i class="ui-switch-circle"></i>
</span>
<span class="ui-switch-label" ng-show="labels">{{switches[1].label}}</span>
</button>