Class SplitButtonEvents
Inheritance
Namespace: Syncfusion.Blazor.SplitButtons
Assembly: Syncfusion.Blazor.dll
Syntax
public class SplitButtonEvents : ComponentBase
Constructors
SplitButtonEvents()
Declaration
public SplitButtonEvents()
Properties
Clicked
Triggers when the primary button of split button has been clicked.
Declaration
public EventCallback<ClickEventArgs> Clicked { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<ClickEventArgs> | An event callback function. |
Closed
Gets or sets an event callback that is raised when the SfSplitButton popup is closed.
Declaration
public EventCallback<OpenCloseMenuEventArgs> Closed { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<OpenCloseMenuEventArgs> | An event callback function. |
Remarks
The events were specified in SplitButtonEvents tag directive. And you can access the split button popup related values using OpenCloseMenuEventArgs.
Examples
<SfSplitButton>
<DropDownMenuItems>
<DropDownMenuItem Text="Dashboard"></DropDownMenuItem>
<DropDownMenuItem Text="Notifications"></DropDownMenuItem>
<DropDownMenuItem Text="User Settings"></DropDownMenuItem>
<DropDownMenuItem Text="Log Out"></DropDownMenuItem>
</DropDownMenuItems>
<SpliButtonEvents Closed="@Closed"></DropDownButtonEvents>
</SfSplitButton>
@code {
private void Closed(OpenCloseMenuEventArgs args) {
// Write your code here.
}
}
Created
Gets or sets an event callback that is raised when the SfSplitButton rendering is completed.
Declaration
public EventCallback<object> Created { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<System.Object> | An event callback function. |
Remarks
The events were specified in SplitButtonEvents tag directive.
Examples
<SfSplitButton>
<DropDownMenuItems>
<DropDownMenuItem Text="Dashboard"></DropDownMenuItem>
<DropDownMenuItem Text="Notifications"></DropDownMenuItem>
<DropDownMenuItem Text="User Settings"></DropDownMenuItem>
<DropDownMenuItem Text="Log Out"></DropDownMenuItem>
</DropDownMenuItems>
<SplitButtonEvents Created="@Created"></SplitButtonEvents>
</SfSplitButton>
@code {
private void Created() {
// Write your code here.
}
}
ItemSelected
Gets or sets an event callback that is raised when the SfSplitButton item is clicked.
Declaration
public EventCallback<MenuEventArgs> ItemSelected { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MenuEventArgs> | An event callback function. |
Remarks
The events were specified in SplitButtonEvents tag directive. And you can access the split button item related values using MenuEventArgs.
Examples
<SfSplitButton>
<DropDownMenuItems>
<DropDownMenuItem Text="Dashboard"></DropDownMenuItem>
<DropDownMenuItem Text="Notifications"></DropDownMenuItem>
<DropDownMenuItem Text="User Settings"></DropDownMenuItem>
<DropDownMenuItem Text="Log Out"></DropDownMenuItem>
</DropDownMenuItems>
<SplitButtonEvents ItemSelected="@ItemSelected"></SplitButtonEvents>
</SfSplitButton>
@code {
private void ItemSelected(MenuEventArgs args) {
// Write your code here.
}
}
OnClose
Gets or sets an event callback that is raised when the SfSplitButton popup is closing.
Declaration
public EventCallback<BeforeOpenCloseMenuEventArgs> OnClose { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<BeforeOpenCloseMenuEventArgs> | An event callback function. |
Remarks
The events were specified in SplitButtonEvents tag directive. And you can access the split button popup related values using BeforeOpenCloseMenuEventArgs.
Examples
<SfSplitButton>
<DropDownMenuItems>
<DropDownMenuItem Text="Dashboard"></DropDownMenuItem>
<DropDownMenuItem Text="Notifications"></DropDownMenuItem>
<DropDownMenuItem Text="User Settings"></DropDownMenuItem>
<DropDownMenuItem Text="Log Out"></DropDownMenuItem>
</DropDownMenuItems>
<SplitButtonEvents OnClose="@OnClose"></SplitButtonEvents>
</SfSplitButton>
@code {
private void OnClose(BeforeOpenCloseMenuEventArgs args) {
// Write your code here.
}
}
OnItemRender
Gets or sets an event callback that is raised when the SfSplitButton rendering is completed.
Declaration
public EventCallback<MenuEventArgs> OnItemRender { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<MenuEventArgs> | An event callback function. |
Remarks
The events were specified in SplitButtonEvents tag directive. And you can customize the DropDownButton items rendering using MenuEventArgs.
Examples
<SfSplitButton>
<DropDownMenuItems>
<DropDownMenuItem Text="Dashboard"></DropDownMenuItem>
<DropDownMenuItem Text="Notifications"></DropDownMenuItem>
<DropDownMenuItem Text="User Settings"></DropDownMenuItem>
<DropDownMenuItem Text="Log Out"></DropDownMenuItem>
</DropDownMenuItems>
<SplitButtonEvents OnItemRender="@OnItemRender"></SplitButtonEvents>
</SfSplitButton>
@code {
private void OnItemRender(MenuEventArgs args) {
// Write your code here.
}
}
OnOpen
Gets or sets an event callback that is raised when the SfSplitButton popup is opening.
Declaration
public EventCallback<BeforeOpenCloseMenuEventArgs> OnOpen { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<BeforeOpenCloseMenuEventArgs> | An event callback function. |
Remarks
The events were specified in SplitButtonEvents tag directive. And you can access the split button popup related values using BeforeOpenCloseMenuEventArgs.
Examples
<SfSplitButton>
<DropDownMenuItems>
<DropDownMenuItem Text="Dashboard"></DropDownMenuItem>
<DropDownMenuItem Text="Notifications"></DropDownMenuItem>
<DropDownMenuItem Text="User Settings"></DropDownMenuItem>
<DropDownMenuItem Text="Log Out"></DropDownMenuItem>
</DropDownMenuItems>
<SplitButtonEvents OnOpen="@OnOpen"></SplitButtonEvents>
</SfSplitButton>
@code {
private void OnOpen(BeforeOpenCloseMenuEventArgs args) {
// Write your code here.
}
}
Opened
Gets or sets an event callback that is raised when the SfSplitButton popup is opened.
Declaration
public EventCallback<OpenCloseMenuEventArgs> Opened { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.EventCallback<OpenCloseMenuEventArgs> | An event callback function. |
Remarks
The events were specified in SplitButtonEvents tag directive. And you can access the split button popup related values using OpenCloseMenuEventArgs.
Examples
<SfSplitButton>
<DropDownMenuItems>
<DropDownMenuItem Text="Dashboard"></DropDownMenuItem>
<DropDownMenuItem Text="Notifications"></DropDownMenuItem>
<DropDownMenuItem Text="User Settings"></DropDownMenuItem>
<DropDownMenuItem Text="Log Out"></DropDownMenuItem>
</DropDownMenuItems>
<SplitButtonEvents Opened="@Opened"></SplitButtonEvents>
</SfSplitButton>
@code {
private void Opened(OpenCloseMenuEventArgs args) {
// Write your code here.
}
}
Methods
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
Type |
---|
System.Threading.Tasks.Task |