diff --git a/src/z2ui5_cl_demo_app_305.clas.abap b/src/z2ui5_cl_demo_app_305.clas.abap index a6c2fcad..ff89286b 100644 --- a/src/z2ui5_cl_demo_app_305.clas.abap +++ b/src/z2ui5_cl_demo_app_305.clas.abap @@ -26,7 +26,7 @@ CLASS z2ui5_cl_demo_app_305 IMPLEMENTATION. DATA(view) = z2ui5_cl_xml_view=>factory( ). DATA(page) = view->shell( )->page( - title = 'abap2UI5 - Tables and cell colors' + title = 'abap2UI5 - Tables and row colors' navbuttonpress = client->_event_nav_app_leave( ) shownavbutton = client->check_app_prev_stack( ) ). @@ -34,27 +34,27 @@ CLASS z2ui5_cl_demo_app_305 IMPLEMENTATION. name = `style` ns = `html` )->_cc_plain_xml( - `td:has([data-color="red"]){ ` + `tr:has([data-color="red"]){ ` && ` background-color: red;` && `}` && `` - && `td:has([data-color="green"]){` + && `tr:has([data-color="green"]){` && ` background-color: green;` && `}` && `` - && `td:has([data-color="blue"]){` + && `tr:has([data-color="blue"]){` && ` background-color: blue;` && `}` && `` - && `td:has([data-color="orange"]){` + && `tr:has([data-color="orange"]){` && ` background-color: orange;` && `}` && `` - && `td:has([data-color="grey"]){` + && `tr:has([data-color="grey"]){` && ` background-color: grey;` && `}` && `` - && `td:has([data-color="yellow"]){` + && `tr:has([data-color="yellow"]){` && ` background-color: yellow;` && `}` ). @@ -63,7 +63,7 @@ CLASS z2ui5_cl_demo_app_305 IMPLEMENTATION. mode = 'MultiSelect' )->header_toolbar( )->overflow_toolbar( - )->title( 'change cell color' + )->title( 'change row color' )->get_parent( )->get_parent( ). tab->columns( @@ -82,8 +82,9 @@ CLASS z2ui5_cl_demo_app_305 IMPLEMENTATION. writetodom = abap_true )->get_parent( )->get_parent( - )->input( value = '{VALUE}' - enabled = abap_true ). + )->get_parent( + )->input( value = '{VALUE}' + enabled = abap_true ). client->view_display( view->stringify( ) ).