DxRibbonEditItemBase<TValue>.Value Property
Specifies the edit value.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v26.1.dll
Declaration
[DefaultValue(null)]
[Parameter]
public TValue Value { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| TValue | null | The data editor value. |
Remarks
Use this property to specify the value in a Spin Editor or Combo Box Ribbon item. You can use the @bind attribute to bind the Value property to a data field. Refer to the following help topic for details: Two-Way Data Binding.
The following code snippet specifies the value of the Spin Editor:
<DxRibbon>
<DxRibbonTab Text="Home">
<DxRibbonGroup>
<DxRibbonSpinEditItem Value="@NumberOfRows"
MinValue="1" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
@code {
private int NumberOfRows { get; set; } = 2;
}
To respond to the value change, handle the ValueChanged event.
See Also