wv-button
Purpose
<wv-button/>
. Used to render button and links styled as buttons with added features for styling, sizing, form submission and click behavior.
Properties
name | description |
---|---|
class |
object type: default value: is required: CSS classes that you may need to add to the standard Bootstrap CSS |
color |
object type: default value: is required: Select from 32 color options |
form |
object type: default value: is required: Awaits a form HTML ID, which will be submitted when the button is pressed. Available only for |
formaction |
object type: default value: is required: If submitted, will add a |
href |
object type: default value: is required: Used when the tag renders an HTML link element only. |
icon-class |
object type: default value: is required: If submitted an additional |
id |
object type: default value: is required: Html ID you may need to set to the rendered element |
is-active |
object type: default value: is required: Additional |
is-block |
object type: default value: is required: The button width will expand based on the container it is wrapped in |
is-disabled |
object type: default value: is required: If the tag renders an HTML button, an additional |
is-outline |
object type: default value: is required: Render only the button outlines and no background under the text |
new-tab |
object type: default value: is required: Used when the tag renders an HTML link element only. Will add an attribute |
onclick |
object type: default value: is required: If submitted, an |
size |
object type: default value: is required: Size of the element. Options are: Normal,Small,Large, Inherit |
text |
object type: default value: is required: The button text displayed to the user |
type |
object type: default value: is required: The type of the rendered element. Available options are: |
Example
<wv-button type="@ButtonType.Button" text="Save" color="@ErpColor.Primary"></wv-button>