menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TabEvents - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TabEvents

    Provides event handlers for the SfTab component.

    Inheritance
    System.Object
    TabEvents
    Namespace: Syncfusion.Blazor.Navigations
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class TabEvents : ComponentBase

    Constructors

    TabEvents()

    Declaration
    public TabEvents()

    Properties

    Added

    Triggers after adding an TabItem to the Tabs.

    Declaration
    public EventCallback<AddEventArgs> Added { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<AddEventArgs>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents Added="OnTabAdded"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabAdded(AddEventArgs args) {
        }
    }

    Adding

    Triggers before adding a TabItem to the Tabs.

    Declaration
    public EventCallback<AddEventArgs> Adding { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<AddEventArgs>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents Adding="OnTabAdding"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabAdding(AddEventArgs args) {
        }
    }

    Created

    Triggers after the SfTab component is created.

    Declaration
    public EventCallback<object> Created { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents Created="OnTabCreated"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabCreated() {
        }
    }

    Destroyed

    Triggers after the SfTab component is destroyed.

    Declaration
    public EventCallback<object> Destroyed { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<System.Object>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents Destroyed="OnTabDestroyed"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabDestroyed() {
        }
    }

    Dragged

    Triggers when a TabItem is dropped.

    Declaration
    public EventCallback<DragEventArgs> Dragged { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DragEventArgs>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents Dragged="OnTabDragged"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabDragged(DragEventArgs args) {
        }
    }

    OnDragStart

    Triggers when a drag action starts on a TabItem.

    Declaration
    public EventCallback<DragEventArgs> OnDragStart { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<DragEventArgs>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents OnDragStart="OnTabDragStart"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabDragStart(DragEventArgs args) {
        }
    }

    Removed

    Triggers after the TabItem is removed.

    Declaration
    public EventCallback<RemoveEventArgs> Removed { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<RemoveEventArgs>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents Removed="OnTabRemoved"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabRemoved(RemoveEventArgs args) {
        }
    }

    Removing

    Triggers before removing the TabItem.

    Declaration
    public EventCallback<RemoveEventArgs> Removing { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<RemoveEventArgs>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents Removing="OnTabRemoving"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabRemoving(RemoveEventArgs args) {
        }
    }

    Selected

    Triggers after the TabItem is selected.

    Declaration
    public EventCallback<SelectEventArgs> Selected { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<SelectEventArgs>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents Selected="OnTabSelected"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabSelected(SelectEventArgs args) {
        }
    }

    Selecting

    Triggers before selecting the TabItem.

    Declaration
    public EventCallback<SelectingEventArgs> Selecting { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.EventCallback<SelectingEventArgs>

    An event callback function.

    Examples
    <SfTab>
      <TabEvents Selecting="OnTabSelecting"></TabEvents>
        <TabItems>
            <TabItem Header="Tab1" Content="Content of Tab1"></TabItem>
        </TabItems>
    </SfTab>
    @code {
        public void OnTabSelecting(SelectingEventArgs args) {
        }
    }

    Methods

    OnInitializedAsync()

    Method invoked when the component is ready to start.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    A System.Threading.Tasks.Task representing any asynchronous operation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved