Customizing the Info Box
The Info Box is a section in a cockpit navigation area, where you can see comments and tasks. Learn how to customize the notations in the Info box of the hybris cockpits.
The default infoslot renderer is a bean and can be replaced by an own implementation. You need to define a custom BaseNavigationArea bean in the Xcockpit-web-spring.xml file and set the property infoSlotRenderer to the custom renderer bean. It must implement the interface de.hybris.platform.cockpit.components.sectionpanel.SimpleRenderer.
If you want to add functionality to the Info Box, follow the steps below:
- Extend the default class de.hybris.platform.cockpit.components.navigationarea.renderer.InfoBoxRenderer.
- Override the method protected void renderAdditionalContent(final Component parent, final List<ValuePair> tokens).