Class TabSelectingEventArgs
Provides information about the TabSelecting event callback.
Inherited Members
Namespace: Syncfusion.Blazor.Ribbon
Assembly: Syncfusion.Blazor.dll
Syntax
public class TabSelectingEventArgs : BaseEventArgs
Remarks
Use this event to handle logic before a tab is selected in the ribbon.
You can cancel the tab selection by setting Cancel
to true
.
Constructors
TabSelectingEventArgs()
Declaration
public TabSelectingEventArgs()
Properties
Cancel
Gets or sets a value indicating whether the tab selection should be canceled.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Use this property to cancel the tab selection process, based on custom conditions.
IsInteracted
Gets or sets a value indicating whether the event is triggered via user interaction or programmatically.
Declaration
public bool IsInteracted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Remarks
Helps to determine the origin of the tab selection, useful for distinguishing between user interaction and code-driven selection.
PreviousIndex
Gets or sets the index of the previously selected tab.
Declaration
public int PreviousIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer representing the index of the previously selected tab. |
Remarks
This property allows tracking of tab transitions within the ribbon.
SelectedIndex
Gets or sets the index of the currently selected tab.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | An integer representing the index of the currently selected tab. |
Remarks
Use this property to obtain the new position of the tab selection.