});
myExampleControls.add(exampleButton.attachPress(oController.doIt));
return myExampleControls;
var myExampleControls = [];
var exampleButton = new sap.ui.commons.Button({
id : this.createId(
text : "Example JS View"
});
myExampleControls.push(exampleButton.attachPress(oController.doIt));
return myExampleControls;
var myExampleControls = [{}];
var exampleButton = new sap.ui.commons.Button({
id.this.createId(
text : "Example JS View"
});
exampleButton.push(myExampleControls.attachPress(oController.doIt));
return myExampleControls;
None of these
While creating an SAPUI5 application project, which of the following code snippets should be added to the createContent function in a JS view, in order to add a control to a user
Correct Answer:
var myExampleControls = [];
var exampleButton = new sap.ui.commons.Button({
id : this.createId(
text : "Example JS View"
});
myExampleControls.push(exampleButton.attachPress(oController.doIt));
return myExampleControls;
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More SAP UI5 MCQ Questions