DxComboBox<TData, TValue>.InputCssClass Property

Specifies CSS classes applied to the ComboBox's input.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

[Parameter]
public string InputCssClass { get; set; }

Property Value

Type Description
String

The input's CSS class names separated by a space.

Remarks

Use the InputCssClass property to apply pre-defined (for example, Bootstrap utilities) or custom CSS classes to the ComboBox's input.

The following example applies the .bg-secondary contextual class to the input's background color and hides the input's border:

<DxComboBox Data="@Cities" @bind-Value="@Value" InputCssClass="bg-secondary border-0"></DxComboBox>

@code {
    IEnumerable<string> Cities = new List<string>() {
    "London",
    "Berlin",
    "Paris",
  };

    string Value { get; set; }
}

ComboBox - Input CSS Class

For more information about how to apply custom CSS classes to DevExpress Blazor components, refer to the following help topic: CSS Classes.

See Also