Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2800

Re: Mousehover in TreeNode

$
0
0

Just in case anyone has the same problem I figured this out by extending the class sap.ui.commons.treeNode like this:

 

sap.ui.commons.TreeNode.extend("HoverTreeNode", {

  metadata: {

       events: {

            "hover" : {}

       }

  },

  onmouseover : function(evt) {

       this.fireHover();

  },

});

 

And then:

 

new HoverTreeNode({

        selectionMode: sap.ui.commons.TreeSelectionMode.Single,

        hover: function(oEvent){

             alert("hoveeer");

        }

});


Viewing all articles
Browse latest Browse all 2800

Trending Articles



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