title with correct binding (#672)

This commit is contained in:
oblomov 2023-11-24 15:28:03 +01:00 committed by GitHub
parent 2662388470
commit 6991c036d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,35 +53,24 @@ CLASS Z2UI5_CL_CC_TITLE IMPLEMENTATION.
METHOD get_js.
result = `debugger; jQuery.sap.declare("z2ui5.CCTitle");` && |\n| &&
`sap.ui.require([` && |\n| &&
` "sap/ui/core/Control"` && |\n| &&
`], (Control) => {` && |\n| &&
` "use strict";` && |\n| &&
|\n| &&
` return Control.extend("z2ui5.CCTitle", {` && |\n| &&
` metadata : {` && |\n| &&
` properties: {` && |\n| &&
` title: {` && |\n| &&
` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| &&
` },` && |\n| &&
` }` && |\n| &&
` },` && |\n| &&
|\n| &&
` init () {` && |\n| &&
|\n| &&
` },` && |\n| &&
|\n| &&
` onAfterRendering() {` && |\n| &&
|\n| &&
` },` && |\n| &&
` renderer(oRm, oControl) {` && |\n| &&
|\n| &&
` debugger; document.title = oControl.getProperty( "title" );` && |\n| &&
` }` && |\n| &&
` });` && |\n| &&
`});`.
result = `jQuery.sap.declare("z2ui5.CCTitle");` && |\n| &&
`sap.ui.require(["sap/ui/core/Control"], (Control)=>{` && |\n| &&
` "use strict";` && |\n| &&
` return Control.extend("z2ui5.CCTitle", {` && |\n| &&
` metadata: {` && |\n| &&
` properties: {` && |\n| &&
` title: {` && |\n| &&
` type: "string"` && |\n| &&
` },` && |\n| &&
` }` && |\n| &&
` },` && |\n| &&
` setTitle(val) {` && |\n| &&
` this.setProperty("title", val);` && |\n| &&
` document.title = val;` && |\n| &&
` },` && |\n| &&
` renderer(oRm, oControl) {}` && |\n| &&
` });` && |\n| &&
` });`.
ENDMETHOD.