I wanted to create a combobox in dojo where the drop down menu and autocompletion kicks in only after the user inputs 3 characters. The current default will start showing the drop down menu and also autocomplete when the user enters the first character.
Are there any attributes for getting this behaviour ? can i overload some functions ? Or should i write a separate widget of my own ?
I can point you in the right direction: navigate to the API page here: http://dojotoolkit.org/api/
and look up
dojox.validate.isText.
There is aminlength
flag that can be set that returns a boolean. Or, you could use regular expressions:`dojox.validate.regexp
which can be found on the same page. Here's an example of using the minlength flag. It's not the most elegant solution(it would also be better if the comboBox had an autoComplete restraint to enable/disable), but it illustrates how attributes can be set for dojo widgets.