Definition
The Button Group Widget allows to display a group of buttons (next to each other) on a feature, allowing to redirect the user to other features.
This Widget has the same properties as the Button Widget in the <entry> property.
Configuration
Properties
|
Property name |
Type |
Mandatory |
Description |
Values (default value in bold) |
|---|---|---|---|---|
|
alignment |
|
NO |
Used to define the display area of the Widget. |
LEFT, RIGHT |
|
- |
NO |
Allows to define the list of redirection to features. |
- |
entries properties
|
Property name |
Type |
Mandatory |
Description |
Values (default value in bold) |
|---|---|---|---|---|
|
- |
NO |
Allows to define properties of each redirection. This tag is configured as many times as we want to add links. |
- |
entry properties
Each entry will have the following configuration:
|
Property name |
Type |
Mandatory |
Description |
Values (default value in bold) |
|---|---|---|---|---|
|
authenticationLevelSufficient |
|
NO |
Used to define if the feature is "sensitive" or not. If true, to access the Feature, the user will have to upgrade his/her authentication level (see settings BUM). |
true, false |
|
borderless |
|
NO |
Used to define if the label of the Widget is underlined or not (when the cursor goes over the text). |
true, false |
|
circle |
|
NO |
Used to define if the border of the Widget is circled or not. If false, the border of the Widget is square-shaped. |
true, false |
|
label |
|
NO |
Used to define if the label of the Widget is displayed inside the button or not. The label will have to be translated by a I18N key: "ui.features."id of the feature".views."id of the view".sections."id of the section".widgets."id of the action".label |
true, false |
|
target |
|
NO If no target is defined, the button will have no action. |
Used to define the redirection of the user to another feature. This is a polymorphic property that can be of three different types: ButtonLinkTarget
Allows to configure a link that will open in the current tab or a new tab. The “target” property can take two values: SELF = open link in same tab NEW_TAB = open link in a new tab XML
ModalWidgetTarget
Open a Widget in a modal dialog (for such an action as: reset a password, role dashboard, ...). The size of the dialog can be controlled by defining a display option on the widget (modalSize : XS ,SM,LG) XML
ModalTarget
Allows to configure a link that will open in a modal dialog. It is similar to the widgetToOpen case but the modal is fully routable using the (secondary:…) url pattern. The “onDismiss” property control the behaviour of the primary route (the one behind the modal) after the modal is dismissed. NONE = Do nothing REFRESH = Refresh the primary route XML
|
For a link to a feature: feature://<featureId>/{dataKey.id} For a hub Feature: feature://user-hub.user-card-read/{dataKey.id} For a link to a user task: task://<action>/<id>
|
|
outline |
|
NO |
Used to define how to display the configured color. |
true (background is white and text is the configured color), false (background is the configured color and text is white) |
Example
|
Code |
|---|
|
Link configuration
|
|
Widget to open configuration
|
|
Modal target configuration
|
Read Next
-
Button Widget Allows to display a button on a feature, in order to redirect the user to another feature.
-
Button Dropdown Widget Allows to display a button on a feature with a dropdown list which contains several buttons, in order to redirect the user to other features.
-
Button Group Widget