Hi
I'm trying to create a simple search box with a Icon and SFTextBox. But the formating is off - PlaceHolder 'overwrite' icon. And how do I make the font larger.
Can you tell me what is wrong? thanks - See screenshot
<SfTextBox @ref="search" Created="@onCreateSearch" Placeholder="Search Work Request Number" Width="250px" CssClass="e-corner" ValueChange="OnSearch" FloatLabelType="@FloatLabelType.Auto"></SfTextBox>
<style>
.e-input-group.e-corner {
border-radius: 5px;
}
.e-upload-picture::before {
content: '\e724';
font-family: e-icons;
}
.bootstrap4 .e-upload-picture::before {
content: '\e769';
font-family: e-icons;
margin-right: 40px;
}
</style>
SfTextBox search;
public void OnSearch(Syncfusion.Blazor.Inputs.ChangedEventArgs args)
{
if (args.Value != null)
{
if (String.IsNullOrEmpty(args.Value))
{
Work = DataService.Get_Work().GetAwaiter().GetResult();
}
else
{
Work = Work.Where(w => w.Summary.Contains(args.Value)).ToList();
}
}
}
public void onCreateSearch()
{
this.search.AddIcon("prepend", "e-upload-picture");
}
Attachment:
Capture_51b0124.zip