Login Register

widgetsInTemplate

[solved] Including an existing dijit in a custom widget?

Hello, everybody:

I'm working on a custom widget.

I would like to have the widget include a dijit.form.ValidationTextBox.

I've got an input field in my widget template's html, with the required attributes for creating a ValidationTextBox.

I've tried dojo.require(dijit.form.ValidationTextBox) in the page that uses the custom widget

I've also tried including dijit.form.ValidationTextBox as a superclass in the widget's dojo.declare. But, I don't really want to extend ValidationTextBox, I just want an instance of it.

Syndicate content