New to Telerik UI for BlazorStart a free 30-day trial

A component that lets you define a reusable base item for DropDownButton menus. Supports custom content, icons, enabled/disabled state, click handling, and notifies its container on parameter changes.

Definition

Constructors

C#
protected DropDownButtonBaseItem()

Methods

C#
public void Dispose()

Implements: IDisposable.Dispose()

C#
protected override void OnAfterRender(bool firstRender)
Parameters:firstRenderbool

Overrides: ComponentBase.OnAfterRender(bool)

C#
protected override Task OnInitializedAsync()
Returns:

Task

Overrides: ComponentBase.OnInitializedAsync()

C#
protected override Task OnParametersSetAsync()
Returns:

Task

Overrides: ComponentBase.OnParametersSetAsync()

C#
public override Task SetParametersAsync(ParameterView parameters)
Parameters:parametersParameterViewReturns:

Task

Overrides: ComponentBase.SetParametersAsync(ParameterView)

Properties

The template of the item.

C#
[Parameter]
public RenderFragment ChildContent { get; set; }

The CSS class that will be rendered on the main element.

C#
[Parameter]
public string Class { get; set; }

Whether the button is enabled.

C#
[Parameter]
public bool Enabled { get; set; }

Specifies the icon rendered in the button. You can use either a predefined Telerik Icon or a custom one. Refer to Icons - Documentation for more information on how icons work.

C#
[Parameter]
public object Icon { get; set; }

The click handler of the item.

C#
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }