Button


Form elements – Abstract

A button is usually used to trigger behaviour in forms.

A button is usually used to trigger behaviour in forms. The Events (Form designer) 'Click' in combination with the Verhaltensweise 'Static: true' is mostly used to execute Actions directly.

Example:

images/download/attachments/58598606/image2018-6-5_12_24_39-version-1-modificationdate-1602248353993-api-v2.png

In addition to its label, each button can have an additional label, which is displayed in the same way as all other form elements. Switching this label on and off controls the alignment with respect to the other elements in the same container:

Setting

Result

images/download/attachments/58598606/image2018-6-5_12_29_31-version-1-modificationdate-1602248353995-api-v2.png

Column layout

images/download/attachments/58598606/image2018-6-5_12_30_6-version-1-modificationdate-1602248354000-api-v2.png

images/download/attachments/58598606/image2018-6-5_12_31_9-version-1-modificationdate-1602248354002-api-v2.png

Column layout

images/download/attachments/58598606/image2018-6-5_12_32_3-version-1-modificationdate-1602248354004-api-v2.png

images/download/attachments/58598606/image2018-6-5_12_32_51-version-1-modificationdate-1602248354007-api-v2.png

Column layout

images/download/attachments/58598606/image2018-6-5_12_33_25-version-1-modificationdate-1602248354011-api-v2.png


Buttons can additionally represent an icon to provide the user with a better overview of the form:

Setting

Result

images/download/attachments/58598606/image2018-6-5_12_34_42-version-1-modificationdate-1602248354014-api-v2.png


images/download/attachments/58598606/image2018-6-5_12_24_39-version-1-modificationdate-1602248353993-api-v2.png

images/download/attachments/58598606/image2018-6-5_12_35_36-version-1-modificationdate-1602248354016-api-v2.png


images/download/attachments/58598606/image2018-6-5_12_35_59-version-1-modificationdate-1602248354019-api-v2.png

Button colors

The color of a button can be defined using the following CSS classes (section 'Layout'), which directly use the colors from the configured Styles.

Class

lb-primary

lb-secondary

lb-warn

lb-error

lb-success

Styles property

primaryColor

secondaryColor

warnColor

errorColor

successColor

Display example

images/download/attachments/58598606/image2020-10-9_14-55-30-version-1-modificationdate-1602248353981-api-v2.png

images/download/attachments/58598606/image2020-10-9_14-56-23-version-1-modificationdate-1602248353978-api-v2.png

images/download/attachments/58598606/image2020-10-9_14-56-46-version-1-modificationdate-1602248353975-api-v2.png

images/download/attachments/58598606/image2020-10-9_14-57-10-version-1-modificationdate-1602248353963-api-v2.png

images/download/attachments/58598606/image2020-10-9_14-57-36-version-1-modificationdate-1602248353956-api-v2.png

Example of triggering actions

When clicking on a button, a hint should be displayed.

images/download/attachments/58598606/image2018-6-5_12_39_0-version-1-modificationdate-1602248354022-api-v2.png

Explanation of the configuration above:

When clicking on the Save button (1), the Behaviour type 'Static: true' (2) directly executes the 'Show hint' action (3).

Result

images/download/attachments/58598606/image2018-6-5_12_40_53-version-1-modificationdate-1602248354025-api-v2.png