-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCheckBoxComponent.razor
More file actions
73 lines (71 loc) · 2.01 KB
/
CheckBoxComponent.razor
File metadata and controls
73 lines (71 loc) · 2.01 KB
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
@using BlazorStyled
<Styled @bind-Classname=@Column1Style>
display: inline-block;
height: 100%;
background-color: @LabelBackgroundColor.Name;
color: @LabelColor.Name;
font-size: @LabelFontSizeStyle;
font-family: @LabelFontName;
text-align: right;
width: @Column1WidthStyle;
position: relative;
top: @LabelTopStyle;
left: @LabelLeftStyle;
justify-content: left;
</Styled>
<Styled @bind-Classname=@Column2Style>
display: inline-block;
height: 100%;
margin-left: @MarginLeftStyle;
width: @Column2WidthStyle;
</Styled>
<Styled @bind-Classname=@TextStyle>
display: inline-block;
position: @Position;
left: @CheckBoxTextXStyle;
top: @CheckBoxTextYStyle;
z-index: @ZIndex;
</Styled>
<Styled @bind-Classname=@CheckBoxStyle>
background-color: @BackgroundColor.Name;
height: @HeightStyle;
width: @WidthStyle;
position: @Position;
left: @CheckBoxXStyle;
top: @CheckBoxYStyle;
border-width: @BorderWidthStyle;
border-color: @BorderColor.Name;
clear: both;
z-index: @ZIndexPlus10;
</Styled>
<Styled @bind-Classname=@CheckBoxControlStyle>
width: @WidthStyle;
position: @Position;
left: @LeftStyle;
top: @TopStyle;
height: @ControlHeightStyle;
background-color: @BackgroundColor.Name;
z-index: @ZIndex;
display: @DisplayStyle;
border-color: @BorderColor.Name;
visibility: @Visibility;
</Styled>
<div class="@CheckBoxControlStyle @ClassName textdonotwrap">
@if (ShowCaption)
{
<div class="@Column1Style">
<div class="@LabelClassName">@Caption</div>
</div>
}
@if (Enabled)
{
<input class="@CheckBoxStyle" @bind="@CheckBoxValue" type="@InputType" checked="@CheckBoxValue" tabindex="@TabIndex" />
}
else
{
<input class="@CheckBoxStyle" type="checkbox" checked="@CheckBoxValue" disabled />
}
<span class="@TextStyle">
@Text
</span>
</div>