I have an Autocomplete control.I would like to add search icon in autocomplet.I have refer below link but its working in bootstrap only not as material class
https://blazor.syncfusion.com/documentation/autocomplete/style
screencast:-
https://www.screencast.com/t/vkmm7DBaH
Note:-
I need to show search icon in right side
awaiting for reply
|
<style>
.e-ddl.e-input-group.e-control-wrapper .e-ddl-icon::before {
content: '\e993';
font-family: 'e-icons';
font-size: 16px;
opacity: 0.4;
}
</style>
|
Thanks working fine
but I need search icon in left side width left padding
|
<SfAutoComplete ID="AutoComplete" TValue="string" TItem="GameFields" Width="300px" ShowPopupButton="true" Placeholder="e.g. Basketball" DataSource="@Games">
<AutoCompleteFieldSettings Value="Text"></AutoCompleteFieldSettings>
<AutoCompleteEvents TValue="string" TItem="GameFields" Created="OnCreate"></AutoCompleteEvents>
</SfAutoComplete>
@code {
@inject IJSRuntime JSRuntime
public async Task OnCreate()
{
await JSRuntime.InvokeVoidAsync("created", "AutoComplete");
}
} |
|
window.created = function (id) {
var autoCompleteObj = document.getElementById(id);
var iconEle = autoCompleteObj.parentElement.getElementsByClassName('e-ddl-icon')[0];
autoCompleteObj.parentNode.insertBefore(iconEle, autoCompleteObj);
} |
|
<script src="~/dropdown.js"></script> |
|
|
|
<style>
span.e-input-group-icon.e-ddl-icon.e-icons {
padding-right: 7px;
padding-left: 2px;
}
</style> |