RibbonSpinEditValueChangedEventArgs<TValue> Class
Contains data for the ValueChanged event.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
Declaration
public class RibbonSpinEditValueChangedEventArgs<TValue> :
RibbonValueChangedEventArgsGeneric<TValue>
Type Parameters
| Name | Description |
|---|---|
| TValue | The new spin editor value. |
Remarks
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}";
}
}
}
Inheritance
See Also