Button actions

Button actions can be created in K2BTools using Action nodes where the Type property is set to Button.

In their simplest form, these actions are displayed using the native button control included with GeneXus.

If Before/After Caption Icons are set, the implementation changes and the "K2BTools.Controls.ExtendedButton" control is used instead.

UI Configuration

The control's appearance can be modified mainly in two ways:

  1. Using the "Class" property to select the control's class. The associated styling rules will be applied in runtime to determine the control's appearance.
  2. Using the "Before/After Caption Icon" properties. When an icon is selected for either of these spots, the UI will be updated so that the selected icon is shown inside the control next to the caption.

Samples:

ButtonWithoutIconSample ButtonWithIconSample
Icons without before/after icons Icons with before/after icons

The samples above show how the appearance can be changed using classes of setting before/after icons.

Iconset support

The "Before/After Caption Icon" properties support selecting an icon from an Iconset.