Skip to content

Commit c2c85ee

Browse files
demo 001 - with message toast new properties (#178)
* demo 001 - with message toast new properties * change style of toast - demo 001 --------- Co-authored-by: oblomov <[email protected]>
1 parent ffada16 commit c2c85ee

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/z2ui5_cl_demo_app_000.clas.abap

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -846,19 +846,12 @@
846846

847847
panel->generic_tile(
848848
header = 'Dynamic Objects IV'
849-
subheader = 'User Generic Tab Refs in Subapps'
849+
subheader = 'User Generic Struc Refs in Subapps'
850850
press = client->_event( 'Z2UI5_CL_DEMO_APP_191' )
851851
mode = 'LineMode'
852852
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
853853
).
854854

855-
panel->generic_tile(
856-
header = 'Dynamic Objects V'
857-
subheader = 'User Generic Struc Refs'
858-
press = client->_event( 'Z2UI5_CL_DEMO_APP_195' )
859-
mode = 'LineMode'
860-
class = 'sapUiTinyMarginEnd sapUiTinyMarginBottom'
861-
).
862855

863856
panel = page->panel(
864857
expandable = abap_false

src/z2ui5_cl_demo_app_001.clas.abap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ENDCLASS.
1414

1515

1616

17-
CLASS z2ui5_cl_demo_app_001 IMPLEMENTATION.
17+
CLASS Z2UI5_CL_DEMO_APP_001 IMPLEMENTATION.
1818

1919

2020
METHOD z2ui5_if_app~main.
@@ -26,6 +26,7 @@ CLASS z2ui5_cl_demo_app_001 IMPLEMENTATION.
2626
quantity = '500'.
2727

2828
DATA(view) = z2ui5_cl_xml_view=>factory( ).
29+
view->_generic( ns = `html` name = `style` )->_cc_plain_xml( `.my-style{ background: black !important; opacity: 0.6; color: white; }` ).
2930
client->view_display( view->shell(
3031
)->page(
3132
title = 'abap2UI5 - First Example'
@@ -48,7 +49,8 @@ CLASS z2ui5_cl_demo_app_001 IMPLEMENTATION.
4849
CASE client->get( )-event.
4950

5051
WHEN 'BUTTON_POST'.
51-
client->message_toast_display( |{ product } { quantity } - send to the server| ).
52+
client->message_toast_display( text = |{ product } { quantity } - send to the server| at = 'left bottom' offset = '0 -15' animationtimingfunction = `ease-in`
53+
class = 'my-style').
5254

5355
WHEN 'BACK'.
5456
client->nav_app_leave( ).

0 commit comments

Comments
 (0)