js files as abap classes (#1622)

* [create-pull-request] automated change

* Update App.controller.js

---------

Co-authored-by: oblomov-dev <oblomov-dev@users.noreply.github.com>
Co-authored-by: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2024-12-10 14:37:39 +01:00 committed by GitHub
parent b884c2ae1e
commit e59657a851
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 9 deletions

View File

@ -207,11 +207,10 @@ sap.ui.define("z2ui5/Tree", ["sap/ui/core/Control"], (Control) => {
z2ui5.onBeforeRoundtrip.push(this.setBackend.bind(this)); z2ui5.onBeforeRoundtrip.push(this.setBackend.bind(this));
}, },
renderer(oRm, oControl) { if (!z2ui5.treeState) return;
setTimeout(() => { setTimeout((id) => {
z2ui5.oView.byId( this.getProperty("tree_id") ).setTreeState( z2ui5.treeState ); z2ui5.oView.byId( id ).getBinding('items').setTreeState( z2ui5.treeState );
}, 100); }, 100, oControl.getProperty("tree_id") );
}
}); });
}); });

View File

@ -228,10 +228,9 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
` },` && |\n| && ` },` && |\n| &&
`` && |\n| && `` && |\n| &&
` renderer(oRm, oControl) {` && |\n| && ` renderer(oRm, oControl) {` && |\n| &&
` if (!z2ui5.treeState) return;` && |\n| && ` setTimeout(() => {` && |\n| &&
` setTimeout((id) => {` && |\n| && ` z2ui5.oView.byId( this.getProperty("tree_id") ).setTreeState( z2ui5.treeState );` && |\n| &&
` z2ui5.oView.byId( id ).getBinding('items').setTreeState( z2ui5.treeState );` && |\n| && ` }, 100);` && |\n| &&
` }, 100, oControl.getProperty("tree_id") );` && |\n| &&
` }` && |\n| && ` }` && |\n| &&
` });` && |\n| && ` });` && |\n| &&
`});` && |\n| && `});` && |\n| &&