sapui5

sap.m.Select: start with a blank selection input element

半世苍凉 提交于 2020-12-05 11:54:57
问题 When using a data aggregation on sap.m.Select , the first entry is always selected. Here's a link to the SDK's preview. Example code from my app new sap.m.Select("id-names", { width: '100%', }).bindAggregation("items", "data>/trip/names", new sap.ui.core.Item({ text: "{data>Name}" })); There is a parameter called selectedKey on the constructor to change this to another index. What I want is the select to be blank , because I want to force my users to make a choice, not blandly accept the

sap.m.Select: start with a blank selection input element

寵の児 提交于 2020-12-05 11:53:59
问题 When using a data aggregation on sap.m.Select , the first entry is always selected. Here's a link to the SDK's preview. Example code from my app new sap.m.Select("id-names", { width: '100%', }).bindAggregation("items", "data>/trip/names", new sap.ui.core.Item({ text: "{data>Name}" })); There is a parameter called selectedKey on the constructor to change this to another index. What I want is the select to be blank , because I want to force my users to make a choice, not blandly accept the

Event handlers from XML fragment not triggered

纵然是瞬间 提交于 2020-11-25 03:44:11
问题 I'd like to attach a liveChange event to the Input field of the reusable Fragment -based Dialog (Walkthrough Step 19: Reuse Dialogs). In XML-template HelloDialog.fragment.xml I've added: <Input id = "input-b" type = "Password" liveChange = ".onLiveChange" placeholder = "Enter your password" /> In the fragment's controller HelloDialog.js I've added: onLiveChange: function (oEvent) { const sNewValue = oEvent.getParameter("value"); this.byId("getValue").setText(sNewValue); console.log("sNewValue

Event handlers from XML fragment not triggered

孤街醉人 提交于 2020-11-25 03:42:40
问题 I'd like to attach a liveChange event to the Input field of the reusable Fragment -based Dialog (Walkthrough Step 19: Reuse Dialogs). In XML-template HelloDialog.fragment.xml I've added: <Input id = "input-b" type = "Password" liveChange = ".onLiveChange" placeholder = "Enter your password" /> In the fragment's controller HelloDialog.js I've added: onLiveChange: function (oEvent) { const sNewValue = oEvent.getParameter("value"); this.byId("getValue").setText(sNewValue); console.log("sNewValue