Quantcast
Channel: SCN: Message List - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 8124

Re: Touch Events in sap.ui.Panel

$
0
0

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....


Viewing all articles
Browse latest Browse all 8124

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>