Sure...
I created a JS file and stored it in my project folder. It is name hte same as the Control. Here, TouchPanel.
The code in TouchPanel is:
jQuery.sap.declare("js.TouchPanel");
jQuery.sap.require("js.TouchPanel");
new sap.ui.commons.Panel.extend("sap.ui.gd.harbinger.js.TouchPanel",{
//metadata: {
// events: {
// "tap" : {} // this Panel has also a "tap" event, in addition to "Expand" of the expandable button
// }
// },
// the hover event handler:
//events: {
"tap" : function(evt) { // is called when the panel is tapped - no event registration required
if(oEvent.type == "click" || oEvent.type == "tap") {
if (sap.ui.commons.Panel.prototype.onclick) {
sap.ui.commons.Panel.prototype.onclick.apply(this, arguments);
}
}
// }
},
I probably have gone very wrong now... I had tried to edit the code last time by first trying to implement what your code says....