ClassTelerikButton
Represents a Telerik UI for Blazor Button component that handles user clicks, form submissions, and navigation actions. Supports icons, multiple styling options, accessibility features, and various button types including submit, reset, and standard buttons. Can be styled with different fill modes, sizes, colors, and corner rounding to match your application's design requirements.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikButton : ButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentButtonBaseTelerikButton
Implements:
Inherited Members
Constructors
TelerikButton()
Declaration
public TelerikButton()
Properties
ButtonSettings
Provides configuration for WebMCP tools, such as a Name to distinguish this Button from others on the same page.
Declaration
[Parameter]
public RenderFragment? ButtonSettings { get; set; }
Property Value
ButtonType
[Accessibility] Sets the HTML button type attribute which determines the button's behavior when clicked. Default value is Submit.
EnableWebMcpTools
Enables the registration of WebMCP tools for this Button instance. When set to true, the Button click operation is exposed as a tool discoverable by AI models through the browser. Default value is false.
Declaration
[Parameter]
public bool EnableWebMcpTools { get; set; }
Property Value
Form
Associates the button with a specific form element by referencing the form's ID attribute. Example: "myFormId".
OnClick
Fires when the user clicks the button. The event provides MouseEventArgs containing details about the click event.
Declaration
[Parameter]
public EventCallback<MouseEventArgs> OnClick { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides