forked from mcasimir/mobile-angular-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
toggle.html
49 lines (41 loc) · 1.42 KB
/
toggle.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<div ui-content-for="title">
<span>Toggle</span>
</div>
<div class="scrollable">
<div class="scrollable-content">
<div class="container-fluid section section-break" id="toggleExample">
<p ui-shared-state id="lightbulb"
ui-class="{'text-primary': lightbulb}"
class="text-default">
<i class="fa fa-lightbulb-o"></i>
</p>
<div class="btn-group justified nav-tabs">
<a
ui-toggle="lightbulb"
ui-class="{'active': lightbulb}"
class="btn btn-default" href>
Toggle
</a>
<a
ui-turn-on="lightbulb"
ui-class="{'active': lightbulb}"
class="btn btn-default" href>
Turn On
</a>
<a
ui-turn-off="lightbulb"
ui-class="{'active': !lightbulb}"
class="btn btn-default" href>
Turn Off
</a>
</div>
<hr>
<h5>ExclusionGroup example</h5>
<div class="btn-group">
<a href class="btn btn-default" ui-turn-on="button1" ui-shared-state="button1" ui-class="{'active': button1}" ui-exclusion-group="myButtons">1</a>
<a href class="btn btn-default" ui-turn-on="button2" ui-shared-state="button2" ui-class="{'active': button2}" ui-exclusion-group="myButtons">2</a>
<a href class="btn btn-default" ui-turn-on="button3" ui-shared-state="button3" ui-class="{'active': button3}" ui-exclusion-group="myButtons">3</a>
</div>
</div>
</div>
</div>