blazor-devexpress-dot-blazor-dot-ribbonspineditvaluechangedeventargs-1.md
Contains data for the ValueChanged event.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public class RibbonSpinEditValueChangedEventArgs<TValue> :
RibbonValueChangedEventArgsGeneric<TValue>
| Name | Description |
|---|---|
| TValue |
The new spin editor value.
|
Use the RibbonSpinEditValueChangedEventArgs class to identify the event type in the NodeEvent event handler.
The following code snippet displays the current value of the Ribbon’s spin editor:
<DxRibbon NodeEvent="OnNodeEvent">
<DxRibbonTab Text="Home">
<DxRibbonGroup>
<DxRibbonSpinEditItem Value="fontSize" />
</DxRibbonGroup>
</DxRibbonTab>
</DxRibbon>
<p>@Notification</p>
@code {
int fontSize = 12;
string Notification = "";
private void OnNodeEvent(RibbonNodeEventArgs args) {
if(args is RibbonSpinEditValueChangedEventArgs<int> eventArgs) {
Notification = $"Spin editor value: {eventArgs.Item.Value}";
}
}
}
Object EventArgs DevExpress.Blazor.Ribbon.Internal.RibbonEventArgs DevExpress.Blazor.Ribbon.Internal.RibbonNodeEventArgs DevExpress.Blazor.Ribbon.Internal.RibbonValueChangedEventArgs DevExpress.Blazor.Ribbon.Internal.RibbonValueChangedEventArgsGeneric<TValue> RibbonSpinEditValueChangedEventArgs<TValue>
See Also