var oRenderer = sap.ushell.Container.getRenderer("fiori2");
var oEntry2 = {
title: "title2",
value: function () {
return jQuery.Deferred().resolve("entryTitleToBeDisplayed2");
},
content: function () {
var deferred = jQuery.Deferred();
//deferred.resolve(new sap.m.CheckBox({ text: "Button", selected: true }));
return jQuery.Deferred().resolve(new sap.m.CheckBox({
text: "Option", selected: bOptionStatus, select: function () {}
}));
},
onSave: function () {
return jQuery.Deferred().resolve();
}
};
oRenderer.addUserPreferencesEntry(oEntry2);
var handlePress = function (e) {
var oDialog = new sap.m.Dialog({
content: [new sap.m.CheckBox({
text: "Option",
selected: bOptionStatus
})],
endButton: new sap.m.Button({
text: "Close",
press: function (e) {
e.getSource().getParent().close();
}.bind(this)
})
});
oDialog.open();
}
var button1 = new sap.m.Button({ text: "testmybutton", press: handlePress });
oRenderer.showActionButton([button1.getId()], false, ["home", "app"]);
value: "entryTitleToBeDisplayed2",
content: { new sap.m.CheckBox({ text: "Option", selected: bOptionStatus, select: function () {} })},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
18 | |
11 | |
10 | |
10 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 |