From d1498582ee2f45d572a44836f61fae18b9ebe870 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 21 Aug 2024 10:40:36 +0000 Subject: [PATCH] Enhanced Shell Bar Sample Added menu and avatar, so that it matches https://sapui5.hana.ondemand.com/sdk/#/entity/sap.f.ShellBar/sample/sap.f.sample.ShellBar/code --- src/z2ui5_cl_demo_app_269.clas.abap | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/z2ui5_cl_demo_app_269.clas.abap b/src/z2ui5_cl_demo_app_269.clas.abap index a05a1cd4..8a825d37 100644 --- a/src/z2ui5_cl_demo_app_269.clas.abap +++ b/src/z2ui5_cl_demo_app_269.clas.abap @@ -18,7 +18,19 @@ CLASS z2ui5_cl_demo_app_269 IMPLEMENTATION. showCopilot = abap_true showSearch = abap_true showNotifications = abap_true - notificationsNumber = `2` ). + notificationsNumber = `2` + )->_generic( name = `menu` + ns = `f` + )->_generic( name = `Menu` + )->menu_item( text = `Flight booking` + icon = `sap-icon://flight` + )->menu_item( text = `Car rental` + icon = `sap-icon://car-rental` + )->get_parent( + )->get_parent( + )->_generic( name = `profile` + ns = `f` + )->avatar( initials = 'UI' ). DATA(xml) = view->stringify( ).