Monday, 2 September 2013

Attach points in dijit.Dialog, when using template as content

Attach points in dijit.Dialog, when using template as content

I am instantiating a dijit.Dialog programmatically and want to set a form
as the content. This is defined in a HTML template, which I load like:
"dojo/text!./templates/CustomTabControllerEditGroupDialog.html", and set
during construction: var myDialog = new Dialog({ ... content: template,
... }); Now I want to have data-dojo-attach-points and -events in my
template, but I don't get where they point to. How do I do this? I know
the issue of extending a dialog is an ongoing discussion, but I honestly
think I should be possible to display a form programmatically without
creating a new Dialog widget. BR, Daniel

No comments:

Post a Comment