Class RadzenSplitButton
RadzenSplitButton component.
public class RadzenSplitButton : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
- Inheritance
-
RadzenSplitButton
- Implements
- Inherited Members
Examples
<RadzenSplitButton Click=@(args => Console.WriteLine($"Value is: {args.Value}"))>
<ChildContent>
<RadzenSplitButtonItem Text="Orders" Value="1" />
<RadzenSplitButtonItem Text="Employees" Value="2" />
<RadzenSplitButtonItem Text="Customers" Value="3" />
</ChildContent>
</RadzenSelectBar>
Constructors
RadzenSplitButton()
public RadzenSplitButton()
Properties
AlwaysOpenPopup
Gets or sets the value indication behaviour to always open popup with item on click and not invoke Click event.
[Parameter]
public bool AlwaysOpenPopup { get; set; }
Property Value
- bool
true
to alway open popup with items; othersie,false
. Default isfalse
.
BusyText
Gets or sets the busy text.
[Parameter]
public string BusyText { get; set; }
Property Value
- string
The busy text.
ButtonAriaLabel
Gets or sets the add button aria-label attribute.
[Parameter]
public string ButtonAriaLabel { get; set; }
Property Value
ButtonContent
Gets or sets the child content.
[Parameter]
public RenderFragment ButtonContent { get; set; }
Property Value
- RenderFragment
The child content.
ButtonStyle
Gets or sets the button style.
[Parameter]
public ButtonStyle ButtonStyle { get; set; }
Property Value
- ButtonStyle
The button style.
Click
Gets or sets the click callback.
[Parameter]
public EventCallback<RadzenSplitButtonItem> Click { get; set; }
Property Value
- EventCallback<RadzenSplitButtonItem>
The click callback.
Disabled
Gets or sets a value indicating whether this RadzenSplitButton is disabled.
[Parameter]
public bool Disabled { get; set; }
Property Value
- bool
true
if disabled; otherwise,false
.
DropDownIcon
Gets or sets the icon of the drop down.
[Parameter]
public string DropDownIcon { get; set; }
Property Value
Icon
Gets or sets the icon.
[Parameter]
public string Icon { get; set; }
Property Value
- string
The icon.
IconColor
Gets or sets the icon color.
[Parameter]
public string IconColor { get; set; }
Property Value
- string
The icon color.
Image
Gets or sets the image.
[Parameter]
public string Image { get; set; }
Property Value
- string
The image.
ImageAlternateText
Gets or sets the text.
[Parameter]
public string ImageAlternateText { get; set; }
Property Value
- string
The text.
IsBusy
Gets or sets a value indicating whether this instance busy text is shown.
[Parameter]
public bool IsBusy { get; set; }
Property Value
- bool
true
if this instance busy text is shown; otherwise,false
.
IsDisabled
Gets a value indicating whether this instance is disabled.
public bool IsDisabled { get; }
Property Value
- bool
true
if this instance is disabled; otherwise,false
.
OpenAriaLabel
Gets or sets the open button aria-label attribute.
[Parameter]
public string OpenAriaLabel { get; set; }
Property Value
Shade
Gets or sets the color shade of the button.
[Parameter]
public Shade Shade { get; set; }
Property Value
- Shade
The color shade of the button.
Size
Gets or sets the size.
[Parameter]
public ButtonSize Size { get; set; }
Property Value
- ButtonSize
The size.
Text
Gets or sets the text.
[Parameter]
public string Text { get; set; }
Property Value
- string
The text.
Variant
Gets or sets the design variant of the button.
[Parameter]
public Variant Variant { get; set; }
Property Value
- Variant
The variant of the button.
Methods
AddItem(RadzenSplitButtonItem)
Adds the item.
public void AddItem(RadzenSplitButtonItem item)
Parameters
item
RadzenSplitButtonItemThe item.
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
Close()
Closes this instance popup.
public void Close()
Dispose()
public override void Dispose()
GetComponentCssClass()
protected override string GetComponentCssClass()
Returns
OnClick(MouseEventArgs)
Handles the Click event.
public Task OnClick(MouseEventArgs args)
Parameters
args
MouseEventArgsThe MouseEventArgs instance containing the event data.
Returns
RemoveItem(RadzenSplitButtonItem)
Removes the item.
public void RemoveItem(RadzenSplitButtonItem item)
Parameters
item
RadzenSplitButtonItemThe item.