Skip to main content
A newer version of this page is available.
All docs
V20.2

DxSpinEdit<T>.InputCssClass Property

Specifies CSS classes applied to the Spin Edit‘s input.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

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 Spin Edit’s input.

Pre-defined CSS classes

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

<DxSpinEdit @bind-Value="@DecimalValue" InputCssClass="bg-secondary border-0"></DxSpinEdit>

@code {
    Decimal DecimalValue { get; set; } = 15;
}

Spin Edit - Input CSS Class

Custom CSS classes

The following example demonstrates how to apply a custom style (my-style) to the Spin Edit’s input:

<style>
    .my-style {
        opacity: 0.5;
        color: white;
        background-color: grey;
    }
</style>

<DxSpinEdit @bind-Value="@DecimalValue" InputCssClass="my-style"></DxSpinEdit>

@code {
    Decimal DecimalValue { get; set; } = 15;
}

Spin Edit - 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