alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class TabEvents

    Provides event handlers for the SfTab component.

    Inheritance
    object
    ComponentBase
    TabEvents
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Blazor.Navigations
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class TabEvents : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

    Constructors

    TabEvents()

    Declaration
    public TabEvents()

    Properties

    Added

    Triggers after adding an TabItem to the Tabs.

    Declaration
    [Parameter]
    public EventCallback<AddEventArgs> Added { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<AddEventArgs> Adding { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<object> Created { get; set; }
    Property Value
    Type Description
    EventCallback<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
    [Parameter]
    public EventCallback<object> Destroyed { get; set; }
    Property Value
    Type Description
    EventCallback<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
    [Parameter]
    public EventCallback<DragEventArgs> Dragged { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<DragEventArgs> OnDragStart { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<RemoveEventArgs> Removed { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<RemoveEventArgs> Removing { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<SelectEventArgs> Selected { get; set; }
    Property Value
    Type Description
    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
    [Parameter]
    public EventCallback<SelectingEventArgs> Selecting { get; set; }
    Property Value
    Type Description
    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
    Task

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

    Overrides
    ComponentBase.OnInitializedAsync()

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved