Button
A standard <button> element.
Options
Stacking CSS Classes
Clashing CSS Classes
Code Example
<A_Button Id="@("exampleButton")"
Class="@("mgRgt0 mgBtm0")"
Content="@("Button")"
JsOnClick="@("mcsUi.exampleButtonAlert()")" />
Parameters
Required | Parameter | Type | Default | Notes |
---|---|---|---|---|
False | Id | String | Empty | |
False | Class | String | .a_button | See above additional class options |
False | DataTarget | string | Empty | Defines the data-target="" attribute for using Javascript to target elements by Id. |
False | JsOnClick | string | Empty | Defines the onclick="" attribute for triggering javascript functions. |
False | BlazorOnClick | EventCallback | Empty | Defines the @onclick="" attribute for triggering Blazor functions. |
True | Content | string | Empty | Used for the text displayed on the button. |
False | Title | string | Empty | Used for the title="" attribute, if blank the Content parameter will be used. |
False | Type | string | button | Defines the type of button. Eg, Button, Reset, Submit |
False | Disabled | boolean | false | Used to deactivate the button. |