Skip to content

Commit 7abcd50

Browse files
authored
Add Label component docs (#144)
1 parent a736ea9 commit 7abcd50

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ There are a significant number of controls in ASP.NET Web Forms, and we will foc
2424
- [Button](docs/Button.md)
2525
- [Image](docs/Image.md)
2626
- [ImageButton](docs/ImageButton.md)
27+
- [Label](docs/Label.md)
2728
- [LinkButton](docs/LinkButton.md)
2829
- Data Controls
2930
- Chart(?)

docs/Label.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Button
2+
3+
It may seem strange that we have a Label component when there already is an HTML span and Blazor has features that enable C# interactions with that label, but we need to activate other features that were once present in Web Forms. Original Web Forms documentation is at: https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.label?view=netframework-4.8
4+
5+
## Blazor Features Supported
6+
7+
- `Text` the text content of the Label component
8+
9+
## WebForms Syntax
10+
11+
```html
12+
<asp:Label
13+
AccessKey="string"
14+
AssociatedControlID="string"
15+
BackColor="color name|#dddddd"
16+
BorderColor="color name|#dddddd"
17+
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
18+
Inset|Outset"
19+
BorderWidth="size"
20+
CssClass="string"
21+
Enabled="True|False"
22+
EnableTheming="True|False"
23+
EnableViewState="True|False"
24+
Font-Bold="True|False"
25+
Font-Italic="True|False"
26+
Font-Names="string"
27+
Font-Overline="True|False"
28+
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
29+
Large|X-Large|XX-Large"
30+
Font-Strikeout="True|False"
31+
Font-Underline="True|False"
32+
ForeColor="color name|#dddddd"
33+
Height="size"
34+
ID="string"
35+
OnDataBinding="DataBinding event handler"
36+
OnDisposed="Disposed event handler"
37+
OnInit="Init event handler"
38+
OnLoad="Load event handler"
39+
OnPreRender="PreRender event handler"
40+
OnUnload="Unload event handler"
41+
runat="server"
42+
SkinID="string"
43+
Style="string"
44+
TabIndex="integer"
45+
Text="string"
46+
ToolTip="string"
47+
Visible="True|False"
48+
Width="size"
49+
/>
50+
```

0 commit comments

Comments
 (0)