BnButton
Namespace: BlazorNative.Components
A push button. Renders as a native Button on Android and a
UIButton on iOS, so it draws and responds the way the platform's own
buttons do.
public sealed class BnButton : Microsoft.AspNetCore.Components.ComponentBase, Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleEvent, Microsoft.AspNetCore.Components.IHandleAfterRender
Inheritance Object → ComponentBase → BnButton
Implements IComponent, IHandleEvent, IHandleAfterRender
Attributes NullableContextAttribute, NullableAttribute
Properties
Label
The button's caption.
public string? Label { get; set; }
Property Value
OnClick
Raised when the button is tapped. Not raised while BnButton.Enabled is false.
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
Enabled
Set false to show the platform's disabled button and stop BnButton.OnClick firing. Default true.
public bool Enabled { get; set; }
Property Value
Constructors
BnButton()
public BnButton()