Dojo Events - Template or Programmatic?

Events and how best to attach them to widgets.

When you are wiring up events in a custom, templated widget, do you wire them up using the template (using “data-dojo-attach-event”), or do you wire them up in the postCreate of your widget? Is one better than the other?

post-create-events vs.


Let me know in the comments!

I periodically write about technology, maps, open data, and other software topics. To get updates about new posts:

See Also