Skip to content

Commit b8242a0

Browse files
authored
Enhanced Shell Bar Sample (#318)
Added menu and avatar, so that it matches https://sapui5.hana.ondemand.com/sdk/#/entity/sap.f.ShellBar/sample/sap.f.sample.ShellBar/code
1 parent 675b060 commit b8242a0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/z2ui5_cl_demo_app_269.clas.abap

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,19 @@ CLASS z2ui5_cl_demo_app_269 IMPLEMENTATION.
1818
showCopilot = abap_true
1919
showSearch = abap_true
2020
showNotifications = abap_true
21-
notificationsNumber = `2` ).
21+
notificationsNumber = `2`
22+
)->_generic( name = `menu`
23+
ns = `f`
24+
)->_generic( name = `Menu`
25+
)->menu_item( text = `Flight booking`
26+
icon = `sap-icon://flight`
27+
)->menu_item( text = `Car rental`
28+
icon = `sap-icon://car-rental`
29+
)->get_parent(
30+
)->get_parent(
31+
)->_generic( name = `profile`
32+
ns = `f`
33+
)->avatar( initials = 'UI' ).
2234

2335
DATA(xml) = view->stringify( ).
2436

0 commit comments

Comments
 (0)