Skip to content

Button

Properties

General

PropertyTypeDescription
Display nametextText value for display name

Visual

PropertyTypeDescription
Titlei18n textButton text displayed on the button. Supports interpolation with context data using {{property}} syntax. (Supports interpolation)
Sizesingle selectSelect option for size Allowed values: Medium, Large, Extra large.
Typesingle selectSelect option for type Allowed values: Primary, Secondary, Ghost.
TooltipbooleanEnable or disable show tooltip
Tooltip texti18n textTooltip text that appears when hovering over the button. Supports interpolation with context data using {{property}} syntax. (Supports interpolation)
Placementsingle selectSelect option for tooltip placement (See availableBSPositionItems)
Tooltip delaytextText value for tooltip delay
Left iconicon pickerSelect icon for icon left
Right iconicon pickerSelect icon for icon right
Auto widthbooleanEnable or disable width auto
Auto heightbooleanEnable or disable height auto
DisabledbooleanEnable or disable disabled

Event_actions

PropertyTypeDescription
EventseventsConfigure event handlers

Authorization

PropertyTypeDescription
Enable when compliant with policy setcomboboxSelect value for authorization disable
Show when compliant with policy setcomboboxSelect value for visibility policy set id

Visibility

PropertyTypeDescription
Display Conditionsconditions configuratorConfigure display conditions

Testing_hooks

PropertyTypeDescription
IDtextText value for id
Data test idtextText value for data test id

Layout

PropertyTypeDescription
Padding ClasspaddingConfigure padding class

Events

EventDescription
On button clickTriggered when the button is clicked
On component initTriggered when the component initializes
On component destroyTriggered when the component is destroyed
On global parameters changeTriggered when global parameters change
On Data Hub ChangeTriggered when data hub changes

How To Use

Getting Started with Dynamic Button

The Dynamic Button component is a versatile, configurable button element that can be used throughout your application to trigger actions and events.

Basic Usage

  1. Add a Dynamic Button to your boardlet by dragging it from the component palette
  2. Configure the button text using the Title property (supports i18n translations)
  3. Set the button style by choosing from Primary, Secondary, or Ghost types
  4. Add click handlers by configuring the ON_BUTTON_CLICK event

Configuration Options

Button Types

  • Primary: Use for main actions (e.g., Submit, Save)
  • Secondary: Use for secondary actions (e.g., Cancel, Back)
  • Ghost: Use for subtle actions that don't need visual emphasis

Button Sizes

  • Medium: Default size, suitable for most use cases
  • Large: Use when the button needs more prominence
  • Extra Large: Use for hero sections or primary CTAs

Adding Icons

You can add icons to the left or right side of the button text:

  1. Select the button in the content editor
  2. Navigate to the Visual properties section
  3. Use the Left Icon or Right Icon picker to select an icon

Event Handling

The Dynamic Button supports the following events:

  • ON_BUTTON_CLICK: Triggered when the user clicks the button
  • ON_INIT: Triggered when the component initializes
  • ON_DESTROY: Triggered when the component is destroyed

Authorization

You can control button visibility and enabled state based on policy sets:

  1. Use "Show When Compliant With Policy Set" to control visibility
  2. Use "Enable When Compliant With Policy Set" to control enabled state

Tooltips

Add helpful tooltips to provide additional context:

  1. Enable "Show Tooltip" in the Visual properties
  2. Configure the tooltip text (supports i18n)
  3. Set the tooltip placement (top, bottom, left, right)
  4. Optionally set a delay before the tooltip appears

Best Practices

  • Use clear, action-oriented text (e.g., "Save Changes" instead of "OK")
  • Maintain consistent button styles throughout your application
  • Use Primary buttons sparingly - typically one per section
  • Provide tooltips for icon-only buttons
  • Consider disabled states for buttons that require prerequisites

Additional Information

Category: Interactive

Current Version: 6