forked from syncfusion/blazor-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Switch.razor
60 lines (52 loc) · 1.5 KB
/
Switch.razor
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
50
51
52
53
54
55
56
57
58
59
60
@page "/Buttons/Switch"
@using Syncfusion.EJ2.Blazor.Buttons
@inherits SampleBaseComponent;
<div class="col-lg-12 control-section">
<div class="content-wrapper">
<div class="container switch-control">
<div>
<h4 class="heading">Hotspot & tethering</h4>
</div>
<div>
<label for="checked" style="padding: 10px 70px 10px 0"> USB Tethering </label>
<EjsSwitch Checked="true"></EjsSwitch>
</div>
<div>
<label for="unchecked" style="padding: 10px 24px 10px 0"> Portable Wi-Fi hotspot </label>
<EjsSwitch></EjsSwitch>
</div>
<div>
<label for='disabled' class="e-disabled" style="padding: 10px 40px 10px 0"> Bluetooth Tethering </label>
<EjsSwitch Disabled="true"></EjsSwitch>
</div>
</div>
</div>
</div>
<style>
/* Switch Styles */
.content-wrapper {
margin-top: 47px;
}
.switch-control .heading {
text-indent: 15px;
padding: 15px 0;
}
.switch-control div {
display: flex;
align-items: center;
}
.switch-control {
margin: 0 auto;
width: 275px;
}
.switch-control label {
-webkit-tap-highlight-color: transparent;
cursor: pointer;
user-select: none;
font-weight: 400;
font-size: 13px;
}
.switch-control .e-disabled {
pointer-events: none;
}
</style>