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