Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3280

Attachbrowser event

$
0
0

I need to trigger a function when a textarea gets the focus in an ap.

 

   new sap.m.TextArea({

  width : "100%",

  value : "",

 

 

  editable : true,

  type : sap.ui.core.URI,

  cols : 40,

  rows : 4,

  visible : true,

  value : "{ActionItemName}",

     

  wrapping : sap.ui.core.Wrapping.None,

  }).attachBrowserEvent("focus",function(e){

   adjust()};

});

 

As i understand it i can attach an browser event to an control with attachBrowserEvent....

I assigned the focus event but its not triggered when the field gets the focus.

Can't i attach the event to an TextArea or is something else here wrong?

Can someone give me an advice how to solve this?

 

Regards

 

Dirk


Viewing all articles
Browse latest Browse all 3280

Trending Articles



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