button with text and icon
This block is part of the state ui group and was last modified in core v13.0.6.
button with text and icon v13.0.1 Updated v13.0.6Generates a basic html button element with default styling.
- text required
valueText to be shown within the button.
- Type
valueGives the option to overwrite the type.
- icon
valueIcon to be shown next to the button, be aware to include the icon font in your HTML/template. Icon can be updated using
state.icon - icon: style
uistyleStyle inline CSS style for the icon • Hidden when unused
- icon: class
uiclassAssigns a CSS class to the icon. • Hidden when unused
- class
uiclassAssigns a CSS class to the element. • Hidden when unused
- style
uistyleApplies inline CSS style to the element • Hidden when unused
- attributes
uiattributesAdds custom attributes to the element. • Hidden when unused
- events
v14.0.1stateeventsAdds event support to the element • Hidden when unused
- state
stateReturns the element to the frontend state.
A typical wiring for button with text and icon: value feeds the value pin; value feeds the state pin; the state out pin feeds get component child.
Used in these guides
These documentation pages use or explain this block:
Version history
Introduced in v13.0.1.
Last modified in v13.0.6.
v14.0.2, click here to see the release notes. v14.0.1 This block or one of its pins was updated in v14.0.1, click here to see the release notes. Back to
state ui Return to the main group to view all sub-groups Back to state elements Return to the group to view all blocks within this group 