Skip to content

Commit 9c493ac

Browse files
1 parent b73f04d commit 9c493ac

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/02/z2ui5.wapa.controller_-app.controller.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ sap.ui.define("z2ui5/LPTitle", ["sap/ui/core/Control"], (Control) => {
154154
title: {
155155
type: "string"
156156
},
157+
ApplicationFullWidth:{
158+
type : "boolean"
159+
}
157160
}
158161
},
159162
setTitle(val) {
@@ -164,6 +167,18 @@ sap.ui.define("z2ui5/LPTitle", ["sap/ui/core/Control"], (Control) => {
164167
console.error("Launchpad Service to set Title not found");
165168
}
166169
},
170+
171+
setApplicationFullWidth(val) {
172+
this.setProperty("ApplicationFullWidth", val);
173+
z2ui5.ApplicationFullWidth = val;
174+
sap.ui.require([
175+
"sap/ushell/services/AppConfiguration"
176+
], async (AppConfiguration) => {
177+
AppConfiguration.setApplicationFullWidth(z2ui5.ApplicationFullWidth);
178+
});
179+
180+
},
181+
167182
renderer(oRm, oControl) { }
168183
});
169184
}

0 commit comments

Comments
 (0)