From 3ee332b747b5d56b5998d8ce7304ecb353991b98 Mon Sep 17 00:00:00 2001 From: axelmohnen Date: Tue, 27 Jun 2023 09:32:45 +0200 Subject: [PATCH] TreeTable: new parameters (#313) * TreeTable: new parameters API Reference: sap.ui.table.TreeTable New parameters for TreeTable and TreeColumn * Update src/z2ui5_cl_xml_view.clas.abap Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> * Update src/z2ui5_cl_xml_view.clas.abap Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> * Update src/z2ui5_cl_xml_view.clas.abap Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> --------- Co-authored-by: oblomov <102328295+oblomov-dev@users.noreply.github.com> Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com> --- src/z2ui5_cl_xml_view.clas.abap | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/z2ui5_cl_xml_view.clas.abap b/src/z2ui5_cl_xml_view.clas.abap index 617a8962..e3d4e323 100644 --- a/src/z2ui5_cl_xml_view.clas.abap +++ b/src/z2ui5_cl_xml_view.clas.abap @@ -821,6 +821,10 @@ CLASS z2ui5_cl_xml_view DEFINITION !selectionmode TYPE clike DEFAULT 'Single' !enablecolumnreordering TYPE clike DEFAULT 'false' !expandfirstlevel TYPE clike DEFAULT 'false' + !COLUMNSELECT type CLIKE optional + !ROWSELECTIONCHANGE type CLIKE optional + !SELECTIONBEHAVIOR type CLIKE default 'RowSelector' + !SELECTEDINDEX type CLIKE optional RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view . METHODS tree_columns @@ -829,6 +833,7 @@ CLASS z2ui5_cl_xml_view DEFINITION METHODS tree_column IMPORTING !label TYPE clike + !HALIGN type CLIKE default 'Begin' RETURNING VALUE(result) TYPE REF TO z2ui5_cl_xml_view . METHODS tree_template @@ -901,7 +906,8 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION. result = _generic( name = `Column` ns = `table` t_prop = VALUE #( - ( n = `label` v = label ) ) ). + ( n = `label` v = label ) + ( n = `hAlign` v = halign ) ) ). ENDMETHOD. @@ -918,7 +924,11 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION. ( n = `rows` v = rows ) ( n = `selectionMode` v = selectionmode ) ( n = `enableColumnReordering` v = enablecolumnreordering ) - ( n = `expandFirstLevel` v = expandfirstlevel ) ) ). + ( n = `expandFirstLevel` v = expandfirstlevel ) + ( n = `columnSelect` v = columnselect ) + ( n = `rowSelectionChange` v = rowselectionchange ) + ( n = `selectionBehavior` v = selectionBehavior ) + ( n = `selectedIndex` v = selectedIndex ) ) ). ENDMETHOD.