javascript - Ext js highlight text -


I want to highlight a text within a text field in EXT js. I dynamically add text fields like this:

  this.getCopyText (). SetValue ('Text to be added'); / | \ | Reference  

I tried to use the focus method but it does not provide the correct effect. Can it be achieved by any chance?

EDIT: selecttext does not help correct the truth of the focus function.

There was a problem highlighting a text field in a window on me, field issue for me Focus is not being highlighted Focus is resolved by calling:

  var me = this; Me.on ('show', function () {Ext.defer (function () {me.getCopyText (). Focus (true);}, 1);}, me)  

Comments