-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathToggleComponent.razor
105 lines (103 loc) · 3.02 KB
/
ToggleComponent.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
@using BlazorStyled
<Styled @bind-Classname=@Column1Style>
display: inline-block;
height: 100%;
background-color: @LabelBackgroundColor;
color: @LabelColor;
font-size: @LabelFontSizeStyle;
text-align: right;
display: flex;
align-items: center;
width: @Column1WidthStyle;
position: @LabelPosition;
top: @LabelTopStyle;
left: @LabelLeftStyle;
z-index: @ZIndexMinus1;
justify-content: left;
font-family: @LabelFontName;
</Styled>
<Styled @bind-Classname="@ComponentStyle">
display: @DisplayStyle;
height: @HeightStyle;
width: @WidthStyle;
z-index: @ZIndex;
position: @Position;
top: @TopStyle;
left: @LeftStyle;
display: flex;
justify-content: left;
gap: 0px;
background-color: @BackgroundColor.Name;
border-width: @BorderWidth;
border-color: @BorderColor.Name;
</Styled>
<Styled @bind-Classname="@OvalLeftButtonStyle">
width: @OvalEndWidthStyle;
max-width: @OvalEndWidthStyle;
height: @HeightStyle;
border: none;
outline: none;
border-bottom-left-radius: @OvalRadiusStyle;
border-top-left-radius: @OvalRadiusStyle;
background-color: @OvalBackgroundColor.Name;
z-index: @ZIndexPlus1;
cursor: pointer;
</Styled>
<Styled @bind-Classname="@OvalMiddleButtonStyle">
width: @OvalWidthStyle;
min-width: @OvalWidthStyle;
height: @HeightStyle;
border: none;
outline: none;
background-color: @OvalBackgroundColor.Name;
z-index: @ZIndexPlus1;
cursor: pointer;
</Styled>
<Styled @bind-Classname="@OvalRightButtonStyle">
width: @OvalEndWidthStyle;
max-width: @OvalEndWidthStyle;
height: @HeightStyle;
border: none;
outline: none;
border-bottom-right-radius: @OvalRadiusStyle;
border-top-right-radius: @OvalRadiusStyle;
background-color: @OvalBackgroundColor.Name;
z-index: @ZIndexPlus1;
cursor: pointer;
</Styled>
<Styled @bind-Classname="@ButtonStyle">
width: @CircleWidthStyle;
height: @CircleHeightStyle;
z-index: @ZIndexPlus2;
border-radius: 50%;
cursor: pointer;
border: none;
outline: none;
background-color: @CircleColor.Name;
position: relative;
left: @CircleLeftStyle;
</Styled>
<Styled @bind-Classname="@OvalStyle">
position: @OvalPosition;
left: @OvalLeftStyle;
top: @OvalTopStyle;
display: flex;
align-items: center;
border: none;
outline: none;
cursor: pointer;
</Styled>
<div class="@ComponentStyle textdonotwrap">
@if (ShowCaption)
{
<div class="@Column1Style">
<div class="@LabelClassName">@Caption</div>
</div>
}
<div class="@OvalStyle">
<button class="@OvalLeftButtonStyle" @onclick="Toggle"></button>
<button class="@OvalMiddleButtonStyle" @onclick="Toggle"></button>
<button class="@OvalRightButtonStyle" @onclick="Toggle"></button>
<button class="@ButtonStyle" @onclick="Toggle"></button>
</div>
</div>