Skip to content

Commit

Permalink
update spreadsheet cc (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
choper725 authored Apr 21, 2024
1 parent 3156c43 commit e8131d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/01/05/z2ui5_cl_cc_spreadsheet.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ CLASS Z2UI5_CL_CC_SPREADSHEET IMPLEMENTATION.
` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| &&
` },` && |\n| &&
` tooltip: {` && |\n| &&
` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| &&
` },` && |\n| &&
` columnconfig: { ` && |\n| &&
` type: "Array" ` && |\n| &&
` },` && |\n| &&
Expand All @@ -66,20 +70,21 @@ CLASS Z2UI5_CL_CC_SPREADSHEET IMPLEMENTATION.
` },` && |\n| &&
|\n| &&
` setColumnconfig: function(oConfig) { ` && |\n| &&
`debugger;` && |\n| &&
* ` oConfig = JSON.parse(oConfig);` && |\n| &&
` this.setProperty("columnconfig", oConfig, true );` && |\n| &&
` },` && |\n| &&
|\n| &&
` renderer: function (oRm, oControl) {` && |\n| &&
` var checkVersion = sap.ui.getVersionInfo().gav.includes('com.sap.ui5') ? true : false;` && |\n| &&
|\n| &&
` oControl.oExportButton = new Button({` && |\n| &&
` text: oControl.getProperty("text"),` && |\n| &&
` icon: oControl.getProperty("icon"), ` && |\n| &&
` type: oControl.getProperty("type"), ` && |\n| &&
` enabled: checkVersion,` && |\n| &&
` tooltip: !checkVersion ? 'Not Available on OpenUI5 SDK' : oControl.getProperty("tooltip") , ` && |\n| &&
` press: function (oEvent) { ` && |\n| &&
|\n| &&
`debugger;` && |\n| &&
` var aCols = oControl.getProperty("columnconfig");` && |\n| &&
` if( !aCols ) { aCols = ` && lv_column_config && `; }` && |\n| &&
|\n| &&
Expand Down
2 changes: 2 additions & 0 deletions src/02/01/01/z2ui5_cl_xml_view_cc.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ CLASS z2ui5_cl_xml_view_cc DEFINITION
!type TYPE clike OPTIONAL
!text TYPE clike OPTIONAL
!icon TYPE clike OPTIONAL
!tooltip TYPE clike OPTIONAL
!columnconfig TYPE clike OPTIONAL
RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view .
Expand Down Expand Up @@ -439,6 +440,7 @@ CLASS Z2UI5_CL_XML_VIEW_CC IMPLEMENTATION.
( n = `text` v = text )
( n = `icon` v = icon )
( n = `type` v = type )
( n = `tooltip` v = tooltip )
( n = `columnconfig` v = columnconfig )
) ).

Expand Down

0 comments on commit e8131d9

Please sign in to comment.