Blazor コントロール
編集
コントロール > Inputコントロール > ComboBox > 編集

C1ComboBox can be used as an editable text input control with auto-suggest feature that matches the typed text to the list of items. By default, the ComboBox control is non-editable. However, you can make it editable using the IsEditable property. This is a Boolean property which allows the users to modify their input by enabling/disabling editing in the ComboBox control.

ComboBox Editing

To make the ComboBox editable, use the following code. The following example uses the example created in the Quick Start section.

Razor
コードのコピー
@using C1.Blazor.Input
        
<C1ComboBox ItemsSource="countries" T="Country" IsEditable="true" Text="Select a Country" />

@code
{
    IEnumerable<Country> countries;
        
    protected override void OnInitialized()
    {
        countries = Country.GetCountries();
    }
}