Addressability of dojo widget inside of a custom widget -


i think i'm missing obvious here in dojo 1.8 w.r.t. writing custom widgets.

i have simple widget includes, among other things, currencytextbox.

at runtime, able change currency of widget usd or eur or whatever else.

normally, if wasn't widget, with

registry.byid("mycurrenttextbox").set("currency","usd");

but nested widgets inside of custom widgets don't registered in registry. so, what's trick getting addressability widget , assigning widget attributes (not dom attributes) widget nested inside custom widget?

add data-dojo-attach-point="mycurrenttextbox" widget definition in template. within widget can access textbox using this.mycurrenttextbox.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -