Skip to content

Commit 675b060

Browse files
authored
Added Shell Bar Sample (#317)
1 parent a856af4 commit 675b060

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
CLASS z2ui5_cl_demo_app_269 DEFINITION
2+
PUBLIC FINAL
3+
CREATE PUBLIC.
4+
5+
PUBLIC SECTION.
6+
INTERFACES z2ui5_if_app.
7+
ENDCLASS.
8+
9+
10+
CLASS z2ui5_cl_demo_app_269 IMPLEMENTATION.
11+
METHOD z2ui5_if_app~main.
12+
DATA(view) = z2ui5_cl_xml_view=>factory( ).
13+
14+
view->shell_bar(
15+
title = `Application Title`
16+
secondTitle = `Short description`
17+
homeIcon = `https://sapui5.hana.ondemand.com/sdk/resources/sap/ui/documentation/sdk/images/logo_sap.png`
18+
showCopilot = abap_true
19+
showSearch = abap_true
20+
showNotifications = abap_true
21+
notificationsNumber = `2` ).
22+
23+
DATA(xml) = view->stringify( ).
24+
25+
client->view_display( xml ).
26+
ENDMETHOD.
27+
ENDCLASS.

src/z2ui5_cl_demo_app_269.clas.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<abapGit version="v1.0.0" serializer="LCL_OBJECT_CLAS" serializer_version="v1.0.0">
3+
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
4+
<asx:values>
5+
<VSEOCLASS>
6+
<CLSNAME>Z2UI5_CL_DEMO_APP_269</CLSNAME>
7+
<LANGU>E</LANGU>
8+
<DESCRIPT>Shell Bar</DESCRIPT>
9+
<STATE>1</STATE>
10+
<CLSCCINCL>X</CLSCCINCL>
11+
<FIXPT>X</FIXPT>
12+
<UNICODE>X</UNICODE>
13+
</VSEOCLASS>
14+
</asx:values>
15+
</asx:abap>
16+
</abapGit>

0 commit comments

Comments
 (0)