You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blazor/textbox/getting-started-webapp.md
+20-19Lines changed: 20 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -112,32 +112,33 @@ N> [View Sample in GitHub](https://github.com/SyncfusionExamples/Blazor-Getting-
112
112
113
113
## Adding icons to the Blazor TextBox
114
114
115
-
A TextBox can be created with icon as a group by creating the parent `div` element with the class `e-input-group` and add the icon element as span with the class `e-input-group-icon`.
115
+
You can add an icon to the TextBox component using the [AddIconAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfTextBox.html#Syncfusion_Blazor_Inputs_SfTextBox_AddIconAsync_System_String_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__) method. Below is an example of how to implement this in your Blazor application:
116
116
117
-
{% tabs %}
118
-
{% highlight razor %}
117
+
```cshtml
118
+
@using Syncfusion.Blazor.Inputs
119
119
120
-
<divclass='e-input-group'>
121
-
<input class='e-input' Placeholder='Date of Birth' type='text'>
Copy file name to clipboardExpand all lines: blazor/textbox/getting-started.md
+20-19Lines changed: 20 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -128,32 +128,33 @@ Add the Syncfusion Blazor TextBox component in the **~/Pages/Index.razor** file.
128
128
129
129
## Adding icons to the Blazor TextBox
130
130
131
-
A TextBox can be created with icon as a group by creating the parent `div` element with the class `e-input-group` and add the icon element as span with the class `e-input-group-icon`.
131
+
You can add an icon to the TextBox component using the [AddIconAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Inputs.SfTextBox.html#Syncfusion_Blazor_Inputs_SfTextBox_AddIconAsync_System_String_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__) method. Below is an example of how to implement this in your Blazor application:
132
132
133
-
{% tabs %}
134
-
{% highlight razor %}
133
+
```cshtml
134
+
@using Syncfusion.Blazor.Inputs
135
135
136
-
<divclass='e-input-group'>
137
-
<input class='e-input' Placeholder='Date of Birth' type='text'>
0 commit comments