New to Telerik UI for Blazor? Start a free 30-day trial

The base class for DropDownButton.

Definition

Namespace:Telerik.Blazor.Components.Common.Buttons.DropDownButton

Assembly:Telerik.Blazor.dll

Syntax:

C#
public abstract class DropDownButtonBase : ButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IPopupContainer

Inheritance: objectComponentBaseBaseComponentButtonBaseDropDownButtonBase

Derived Classes: TelerikDropDownButtonTelerikSplitButton

Implements: IComponentIDisposableIHandleAfterRenderIHandleEventIPopupContainer

Inherited Members ButtonBase.IdButtonBase.ChildContentButtonBase.TitleButtonBase.IconButtonBase.IconVariantButtonBase.EnabledButtonBase.TabIndexButtonBase.FillModeButtonBase.RoundedButtonBase.SizeButtonBase.ThemeColorButtonBase.AriaLabelButtonBase.AriaLabelledByButtonBase.AriaDescribedByButtonBase.AriaControlsBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
protected DropDownButtonBase()

Properties

Displays an icon, such as "ArrowRight", after the main button content. On a DropDownButton it appears before the menu arrow; on a SplitButton it appears only on the primary action. Use EndIconVariant to select an SVG variant.

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

Specifies the SVG variant for EndIcon. When null, empty, or unsupported, the icon's default SVG content is rendered. Font and custom CSS icons are unaffected.

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

The Click handler of the button.

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

Methods

Closes the dropdown popup programmatically. Fires the OnClose event, which can cancel the closing.

C#
public Task CloseAsync()
Returns:

Task

Moves focus to the component.

C#
public Task FocusAsync()
Returns:

Task

Opens the dropdown popup programmatically. Fires the OnOpen event, which can cancel the opening.

C#
public Task OpenAsync()
Returns:

Task