cancel
Showing results for 
Search instead for 
Did you mean: 

sap.ui.table.Column header button not working on single click

02-02-2023 10:51 AM
hritika Product and Topic Expert
1276 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

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.

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

Marian_Zeis
Active Contributor

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.