zhaolei
8 days ago 4a2e5b9a21940f11757be37d99f0944e240e908b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@typeparam TItem
@inherits SelectBase<TItem>
 
<div class="@($"form-group {ColumnClass}")">
    <label class="control-label" for="@Id">@DisplayName</label>
    <div data-toggle="lgbSelect" class="@(Disabled ? "form-select dropdown is-disabled" : "form-select dropdown")">
        @if(Disabled) 
        {
            <input type="text" readonly="readonly" class="form-control form-select-input" disabled id="@Id" data-toggle="dropdown" placeholder="@PlaceHolder" value="@SelectedItem.Text" />
        }
        else 
        {
            <input type="text" readonly="readonly" class="form-control form-select-input" id="@Id" data-toggle="dropdown" placeholder="@PlaceHolder" value="@SelectedItem.Text" />
        }
        <span class="form-select-append"><i class="fa fa-angle-up"></i></span>
        <div class="dropdown-menu-arrow"></div>
        <div class="dropdown-menu">
            @foreach (var item in Items)
            {
                <SelectItem Item="@item" ItemClickCallback="ItemClickCallback"></SelectItem>
            }
        </div>
    </div>
</div>
 
@code {
 
}