|
<SfDropDownList
TValue="string"
Placeholder="e.g. Australia" FloatLabelType="Syncfusion.Blazor.Inputs.FloatLabelType.Never" TItem="Country" @bind-Value="@DropVal" DataSource="@Countries">
<DropDownListFieldSettings Value="Name"></DropDownListFieldSettings>
</SfDropDownList>
@code {
public string DropVal;
public class Country
{
public string Name { get; set; }
public string Code { get; set; }
}
List<Country> Countries = new List<Country>
{
new Country() { Name = "Australia", Code = "AU" },
new Country() { Name = "Bermuda", Code = "BM" },
new Country() { Name = "Canada", Code = "CA" },
new Country() { Name = "Cameroon", Code = "CM" },
};
}
<style>
.e-ddl.e-input-group
input.e-input::placeholder {
font-size:10px;
}
.e-dropdownbase
.e-list-item {
font-size: 10px;
}
</style>
|