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

Cursor Style in SAPUI5

$
0
0

Hi Experts,

 

Is there a way in SPUI5 to change the cursor style when the cursor  hovers over certain controls? For example. in JavaScript it is something like this:

 

 

function setCursorByID(id,cursorStyle) {

var elem;

if (document.getElementById &&

    (elem=document.getElementById(id)) ) {

  if (elem.style) elem.style.cursor=cursorStyle;

}

}

 

or in CSS

 

<span style="cursor:help">help</span><br>

 

However, I could not get it working, either by applying the CSS approach in the FormattedTextView control or replicating the JavaScript logic. Would someone help me with this, please?

 

Regards

Casper


Viewing all articles
Browse latest Browse all 9146

Trending Articles



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