Skip to content

Commit

Permalink
Add "color_palette" method (abap2UI5#1462)
Browse files Browse the repository at this point in the history
  • Loading branch information
francisco-milan authored Sep 29, 2024
1 parent 68e4723 commit 0f02f90
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/02/z2ui5_cl_xml_view.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ CLASS z2ui5_cl_xml_view DEFINITION
link TYPE clike OPTIONAL
RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view.

METHODS color_palette
IMPORTING !ns TYPE clike OPTIONAL
colorselect TYPE clike OPTIONAL
RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view.

METHODS auto
IMPORTING !ns TYPE clike OPTIONAL
rowcontentheight TYPE clike OPTIONAL
Expand Down Expand Up @@ -9113,7 +9118,10 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.


METHOD toolbar.
DATA(lv_name) = COND #( WHEN ns = 'table' THEN 'toolbar' ELSE `Toolbar` ).
DATA(lv_name) = COND #(
WHEN ns = 'table' THEN 'toolbar'
WHEN ns = 'form' THEN 'toolbar'
ELSE `Toolbar` ).
result = _generic( name = lv_name
ns = ns
t_prop = VALUE #( ( n = `active` v = z2ui5_cl_util=>boolean_abap_2_json( active ) )
Expand Down Expand Up @@ -10128,4 +10136,12 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
name = `currentLocation`
t_prop = VALUE #( ( n = `link` v = link ) ) ).
ENDMETHOD.


METHOD color_palette.
result = _generic(
ns = ns
name = `ColorPalette`
t_prop = VALUE #( ( n = `colorSelect` v = colorselect ) ) ).
ENDMETHOD.
ENDCLASS.

0 comments on commit 0f02f90

Please sign in to comment.