dojo newbie here , have dialog , before dialog.show(), want set , select 1 of text boxes. select() not available have tried. extension need select entire textbox contents on click in textbox after dialog up. cannot seem around missing select(). how do it?
there's selectonclick attribute on textbox should out there:
<input data-dojo-type="dijit/form/textbox" data-dojo-props="selectonclick:true" value="everything selected on click"/> http://jsfiddle.net/inanutshellus/v97wgxlb/
if want programmatically set focus , set selection, cheat , call private _onfocus method directly. looks you'd pass in string "mouse", e.g.
mytextbox._onfocus("mouse");
Comments
Post a Comment