File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
src/BlazorWebFormsComponents Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1+ namespace BlazorWebFormsComponents . Interfaces
2+ {
3+ public interface ITextComponent
4+ {
5+ string Text { get ; set ; }
6+ }
7+ }
Original file line number Diff line number Diff line change 22
33@if (Visible )
44{
5- <label id =" @ID" >@Text.ToString() </ label >
5+ <span id =" @ID" >@Text </ span >
66}
Original file line number Diff line number Diff line change 1- using Microsoft . AspNetCore . Components ;
1+ using BlazorWebFormsComponents . Interfaces ;
2+ using Microsoft . AspNetCore . Components ;
23
34namespace BlazorWebFormsComponents
45{
5- public partial class Label : BaseWebFormsComponent
6+ public partial class Label : BaseWebFormsComponent , ITextComponent
67 {
7- [ Parameter ] public object Text { get ; set ; }
8-
8+ [ Parameter ]
9+ public string Text { get ; set ; }
910 }
1011}
You can’t perform that action at this time.
0 commit comments