|
|
|
@ -6,20 +6,53 @@
|
|
|
|
|
|
|
|
|
|
@if (Items is not null)
|
|
|
|
|
{
|
|
|
|
|
<div class="@InputFieldClassList">
|
|
|
|
|
@if (EnableSearch)
|
|
|
|
|
{
|
|
|
|
|
<TextInput Placeholder="Enter search.."
|
|
|
|
|
@bind-Value="@SearchText" />
|
|
|
|
|
}
|
|
|
|
|
<select @onchange="@ChangeValueAsync">
|
|
|
|
|
@foreach (ValueType item in Items)
|
|
|
|
|
<div class="@InputFieldClassList">
|
|
|
|
|
|
|
|
|
|
<select type="textarea" style="height:0px;" @attributes=@InputAttributes>
|
|
|
|
|
</select>
|
|
|
|
|
@if (IsLabel)
|
|
|
|
|
{
|
|
|
|
|
@if (item is not null)
|
|
|
|
|
<label class="label-animated">@Label</label>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<span class="highlight"></span>
|
|
|
|
|
<span class="bar">
|
|
|
|
|
</span>
|
|
|
|
|
<span class="input-glyph-wraper">
|
|
|
|
|
@if (Clearable)
|
|
|
|
|
{
|
|
|
|
|
<option value="@item">@item.ToString()</option>
|
|
|
|
|
<span class="input-glyph button">
|
|
|
|
|
<i class='bx bx-x-circle'></i>
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<span class="input-glyph">
|
|
|
|
|
<i class='bx bx-caret-down'></i>
|
|
|
|
|
</span>
|
|
|
|
|
@if (IsError)
|
|
|
|
|
{
|
|
|
|
|
<span class="input-glyph error">
|
|
|
|
|
<i class='bx bx-error-circle'></i>
|
|
|
|
|
</span>
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
<div class="drop-down">
|
|
|
|
|
<div class="dropdown-menu p-2" aria-labelledby="dropdownMenuButton">
|
|
|
|
|
@if (EnableSearch)
|
|
|
|
|
{
|
|
|
|
|
<input type="text"
|
|
|
|
|
placeholder="Enter search string..."
|
|
|
|
|
class="dropdown-item"
|
|
|
|
|
@bind-value="@SearchText"
|
|
|
|
|
/>
|
|
|
|
|
}
|
|
|
|
|
@foreach (ValueType item in Items)
|
|
|
|
|
{
|
|
|
|
|
@if (item is not null)
|
|
|
|
|
{
|
|
|
|
|
<div class="dropdown-item" @onclick=@(()=>SetSelectedItem(@item))>@item.ToString()</div>
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|