button

This block is part of the state ui group and was last modified in core v13.0.6.

button v13.0.1 Updated v13.0.6

Generates a basic html button element with default styling.

In pins 9
  • content required
    state

    Content to be shown within the button.

  • Type
    value

    Gives the option to overwrite the type.

    Default button

  • icon
    value

    Icon 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
    uistyle

    Style inline CSS style for the icon • Hidden when unused

  • icon: class
    uiclass

    Assigns a CSS class to the icon. • Hidden when unused

  • class
    uiclass

    Assigns a CSS class to the element. • Hidden when unused

  • style
    uistyle

    Applies inline CSS style to the element • Hidden when unused

  • attributes
    uiattributes

    Adds custom attributes to the element. • Hidden when unused

  • events v14.0.1
    stateevents

    Adds event support to the element • Hidden when unused

Out pins 1
  • state
    state

    Returns the element to the frontend state.

A typical wiring for button: execute feeds the inpinfunction pin; custom text feeds the content pin; custom feeds the iconclass pin; value feeds the state pin; the state out pin feeds div.

Studio canvas example for the button block: typical wiring for button.

Commonly used with

In production blueprints, this block is most often wired together with:

  • execute: feeds into this block. Enables you to choose a function that can be passed to other actions.
  • div: this block feeds into it. Creates a dynamic and customizable div element on your web page.
  • custom text: feeds into this block.
  • custom: feeds into this block. Custom class input.

Version history

Introduced in v13.0.1.

Last modified in v13.0.6.

v14.0.2 This block or one of its pins was updated in 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