Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Attaching HTML DOM events with SAP UI5 controls

$
0
0

Hi,

 

I want users to enter only digits in a textfield(sap.ui.commons.TextField). For that I was trying to attach standard HTML event 'keydown'/'keyup' bu to my goodness it was throwing error like "undefined is not a function". 

Due to this reason I have to fall back to 'liveChange' call back where I am checking if a character entered is digit or not... but it still allows user to type in the textfield....It look quite odd...

 

Can anyone suggest better approach?  Any suggestions/help appreciated.

 

 

Thanks,

Supriya Kale


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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