Skip to content

App Button

The App Button is a large, rounded icon button with a label under it, of the kind used in an application menu to open an application or a page. It is found in the Input - OpenBridge section of the Perspective Component Palette as App Button.

App Button with a chart icon and the label Chart

  1. Icon — see Icon and Label.
  2. Label — see Icon and Label.

The App Button is one of the input components. Events, disabling, icons and the behavior in the Designer are shared by all of them and are described in Input Components — Common Features. This page covers what is specific to the App Button.

An App Button with default properties:

App Button with default properties

A new App Button already has the label Button and the placeholder icon.

The App Button has no value. When the operator clicks it, it fires the onActionPerformed event once. Configure the event with the action to perform, for example a navigation action (see Example 1).

Clicking does not change checked. The button is not a toggle; checked only changes how it is drawn (see Checked).

A disabled App Button does not fire the event.


icon is an icon picker: choose the icon in the property editor, which sets icon.path, for example openbridge/chart. See Icons.

label is the text under the icon. Set showLabel to false to hide it:

showLabel = true showLabel = false
App Button with a label App Button without a label
Name Description Property Type
icon The icon on the button. An icon picker; see icon.path. object
icon.path Path of the icon. Default openbridge/placeholder. value
label Text under the icon. Default Button. value
showLabel Show the label. Default true. value

size selects one of two sizes. The blue frame in the images is the component’s box, here at the size of a new App Button (72 × 90):

size Image
normal (default) The standard size: 72 × 96 px with the label. Normal App Button
small A smaller button for dense layouts: 48 × 60 px. Small App Button

The button is drawn at its own size in the top left corner of the component’s box; it does not stretch with the box. Make the box at least as large as the button. A normal button with a label is 6 px taller than the box of a new component, so increase the height to 96.

Name Description Property Type
size normal or small. Default normal. value

Set checked to true to draw the button as selected, for example to mark the application or page that is open:

checked Enabled Disabled
false Unchecked App Button Unchecked App Button, disabled
true Checked App Button Checked App Button, disabled

The component never changes checked itself. Bind it, for example to an expression that compares the current page with the page the button opens.

Name Description Property Type
checked Draw the button as selected. Default false. value

Set integration to true when the button is placed on an integration bar. It is then drawn in the colours of that bar, and is hard to read on an ordinary background, as in these images:

Unchecked Checked
Integration style, unchecked Integration style, checked
Name Description Property Type
integration Draw the button for use on an integration bar. Default false. value

These work in the same way on every input component, and are described in Input Components — Common Features:

Event Description Event Object
onActionPerformed Fired when the operator clicks the button. —

See Events.

  1. Drop an App Button into the view and set its height to 96.

  2. Set label to Chart and choose the icon openbridge/chart for icon.

  3. Configure the onActionPerformed event with a Navigation action that opens the page /chart.

  4. Bind checked to an expression that is true when that page is open:

    {page.props.path} = '/chart'

Built on the OpenBridge Design System