File tree Expand file tree Collapse file tree 3 files changed +93
-0
lines changed Expand file tree Collapse file tree 3 files changed +93
-0
lines changed Original file line number Diff line number Diff line change @@ -790,6 +790,14 @@ CLASS z2ui5_cl_demo_app_000 IMPLEMENTATION.
790
790
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
791
791
).
792
792
793
+ panel->generic_tile(
794
+ header = 'Overflow Toolbar'
795
+ subheader = 'Placing a Title in OverflowToolbar/Toolbar'
796
+ press = client->_event( 'Z2UI5_CL_DEMO_APP_217' )
797
+ mode = 'LineMode'
798
+ class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
799
+ ).
800
+
793
801
panel = page->panel(
794
802
expandable = abap_false
795
803
expanded = abap_true
Original file line number Diff line number Diff line change
1
+ class z2ui5_cl_demo_app_217 definition
2
+ public
3
+ create public .
4
+
5
+ public section .
6
+
7
+ interfaces IF_SERIALIZABLE_OBJECT .
8
+ interfaces Z2UI5_IF_APP .
9
+
10
+ data CHECK_INITIALIZED type ABAP_BOOL .
11
+ PROTECTED SECTION .
12
+
13
+ METHODS display_view
14
+ IMPORTING
15
+ client TYPE REF TO z2ui5_if_client.
16
+ METHODS on_event
17
+ IMPORTING
18
+ client TYPE REF TO z2ui5_if_client.
19
+
20
+ PRIVATE SECTION .
21
+ ENDCLASS .
22
+
23
+
24
+
25
+ CLASS z2ui5_cl_demo_app_217 IMPLEMENTATION .
26
+
27
+
28
+ METHOD DISPLAY_VIEW .
29
+
30
+ DATA (page ) = z2ui5_cl_xml_view=>factory( )->shell(
31
+ )->page(
32
+ title = 'abap2UI5 - Sample: Placing a Title in OverflowToolbar/Toolbar'
33
+ navbuttonpress = client->_event( 'BACK' )
34
+ shownavbutton = xsdbool ( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL ) ).
35
+
36
+ DATA (layout ) = page->overflow_toolbar( design = `Transparent` height = `3rem`
37
+ )->title( text = `Title Only` ).
38
+ page->overflow_toolbar( design = `Transparent` height = `3rem`
39
+ )->title( text = `Title and Actions`
40
+ )->toolbar_spacer(
41
+ )->button( icon = `sap-icon://group-2`
42
+ )->button( icon = `sap-icon://action-settings` ).
43
+
44
+ client->view_display( page->stringify( ) ).
45
+
46
+ ENDMETHOD .
47
+
48
+
49
+ METHOD ON_EVENT .
50
+
51
+ CASE client->get( )-event.
52
+ WHEN 'BACK' .
53
+ client->nav_app_leave( ).
54
+ ENDCASE .
55
+
56
+ ENDMETHOD .
57
+
58
+
59
+ METHOD Z2UI5_IF_APP ~MAIN .
60
+
61
+ IF check_initialized = abap_false .
62
+ check_initialized = abap_true .
63
+ display_view( client ).
64
+ ENDIF .
65
+
66
+ on_event( client ).
67
+
68
+ ENDMETHOD .
69
+ ENDCLASS .
Original file line number Diff line number Diff line change
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_217</CLSNAME >
7
+ <LANGU >E</LANGU >
8
+ <DESCRIPT >Placing a Title in OverflowToolbar/Toolbar</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 >
You can’t perform that action at this time.
0 commit comments