mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-30 07:31:54 +08:00
title with correct binding (#672)
This commit is contained in:
parent
2662388470
commit
6991c036d5
|
@ -53,33 +53,22 @@ 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| &&
|
||||
result = `jQuery.sap.declare("z2ui5.CCTitle");` && |\n| &&
|
||||
`sap.ui.require(["sap/ui/core/Control"], (Control)=>{` && |\n| &&
|
||||
` "use strict";` && |\n| &&
|
||||
|\n| &&
|
||||
` return Control.extend("z2ui5.CCTitle", {` && |\n| &&
|
||||
` metadata: {` && |\n| &&
|
||||
` properties: {` && |\n| &&
|
||||
` title: {` && |\n| &&
|
||||
` type: "string",` && |\n| &&
|
||||
` defaultValue: ""` && |\n| &&
|
||||
` type: "string"` && |\n| &&
|
||||
` },` && |\n| &&
|
||||
` }` && |\n| &&
|
||||
` },` && |\n| &&
|
||||
|\n| &&
|
||||
` init () {` && |\n| &&
|
||||
|\n| &&
|
||||
` setTitle(val) {` && |\n| &&
|
||||
` this.setProperty("title", val);` && |\n| &&
|
||||
` document.title = val;` && |\n| &&
|
||||
` },` && |\n| &&
|
||||
|\n| &&
|
||||
` onAfterRendering() {` && |\n| &&
|
||||
|\n| &&
|
||||
` },` && |\n| &&
|
||||
` renderer(oRm, oControl) {` && |\n| &&
|
||||
|\n| &&
|
||||
` debugger; document.title = oControl.getProperty( "title" );` && |\n| &&
|
||||
` }` && |\n| &&
|
||||
` renderer(oRm, oControl) {}` && |\n| &&
|
||||
` });` && |\n| &&
|
||||
` });`.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user