Hi,
Is it possible to disable bread-crumbs for one standard-editor screen but leave on for all others?
I know you can set it in app properties but that will disable for all screens, is that correct?
Thank you
Regards
Matt
Hi,
Is it possible to disable bread-crumbs for one standard-editor screen but leave on for all others?
I know you can set it in app properties but that will disable for all screens, is that correct?
Thank you
Regards
Matt
Hello @matt.keeble,
You are right that the cuba.web.showBreadCrumbs
property enables hiding of the breadcrumbs panel for all screens.
But you can set breadcrumbs not visible on any screen using screens
bean:
@Inject
private Screens screens;
@Subscribe
public void onInit(InitEvent event) {
Screen rootScreen = screens.getOpenedScreens().getRootScreenOrNull();
if (rootScreen != null) {
Component workAreaComponent = rootScreen.getWindow().getComponent("workArea");
if (workAreaComponent instanceof AppWorkArea) {
TabSheetBehaviour tabSheet = ((WebAppWorkArea) workAreaComponent).getTabbedWindowContainer().getTabSheetBehaviour();
TabWindowContainer windowContainer = (TabWindowContainer) tabSheet.getSelectedTab();
windowContainer.getBreadCrumbs().setVisible(false);
}
}
}
Regards,
Gleb
Sorry for the late response Gleb - only just got around to trying the solution.
Worked perfectly - thank you!
Regards
Matt