Toolbar Widget
The Toolbar Widget is a simple bar with actions. It can also be surrounded by other widgets.
Widget Definition
|
Name |
Toolbar |
|
ID |
com.hybris.backoffice.widgets.toolbar |
|
Category |
Navigation, Actions |
|
Description |
Bar with single action slot and widget slots on both sides. |
|
Applied In |
Not applicable. |
|
Based On |
Not applicable. |
|
Author |
SAP |
|
Inputs |
Details of input sockets:
|
|
Outputs |
Details of output sockets:
|
|
Generated Events |
Not applicable. |
Widget Preview
Toolbar Widget is a bar with actions slot in the middle. All actions that were configured in the context of the component and set in the widget settings (see toolbarActions setting) are rendered here. Slots for widgets are placed on both sides of the actions slot. For the example purposes widget has been configured in the following way:
- Text Search has been added to the toolbarLeftSlot
- Quick Toggle Locale Widget has been added to the toolbarRightSlot
- toolbarAction setting points to the following actions component
<context component="example-actions">
<y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<y:group qualifier="common">
<y:action action-id="com.hybris.cockpitng.action.create.permission"/>
<y:action action-id="com.hybris.cockpitng.action.delete"/>
<y:action action-id="com.hybris.cockpitng.action.edit"/>
</y:group>
</y:actions>
</context>
Settings
|
Setting |
Type |
Description |
|---|---|---|
|
toolbarActions |
java.lang.String |
Name of component in configuration with definition of actions to be searched in cockpit-config.xml |
|
viewMode |
java.land.Enum (Horizontal, Vertical) |
Setting allows you to decide if actions should be rendered vertically or horizontally. Default value: Horizontal. |
Widget Slots
|
slotID |
Multiplicity |
Type |
Slots Composition |
|---|---|---|---|
|
cockpitWidgetChildrenInvisible |
multi |
Not applicable |
This is a general-purpose slot available for widgets. Any widget placed on this slot is not displayed in the application view but can be accessed through its socket API. |
|
toolbarBeforeSlot |
single |
list |
This is a general-purpose slot available for widget. Any widget placed on this slot is displayed before actions. |
|
toolbarAfterSlot |
single |
list |
This is a general-purpose slot available for widget. Any widget placed on this slot is displayed after actions. |