I have added button in label of sap.ui.table.Column field to open a popover. but it gets open on double click from touchpad touch. I want the button to be click on single click only.
oTable.bindColumns("/List/columns", function (sId, oContext) { let columnName = oContext.getObject().columnName; return new sap.ui.table.Column({ autoResizable: true, label : new sap.m.Button({ tooltip: columnName, text: columnName, type: sap.m.ButtonType.Transparent, icon: "sap-icon://filter", press: function(oEvent){ sap.ui.controller("com.sap.clm.sl.cpse.ui.controller.Blueprint").listViewFilterPopup(oEvent); } }), template: columnName, });});

on the double click it open the below popup :

But i want it to be open on single click only. any suggestions is accepted.
Request clarification before answering.
As the name suggests, the label is not designed for a button, but for text controls. So you won't get any official support for this.
Although I don't know what exactly you want to achieve, better alternatives are a ViewSettingsDialog or a Table Select Dialog.
For your example maybe the aggregation "multiLabels" works better, or you use the "columnMenuOpen" event to open your popup.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.