Dojo Syntax and inheritance
basic dojo syntax question coming up. The following funcion to switch view
on a page is an a class called profileView.js In another class that has
profileView.js in the define/require list, I want to access that
viewParams parameter. How exactly do I do this? I've tried a few
combinations of this.emailAddress and viewParams.emailAddress. I can't
seem to get it working. I know it's something simple. Appreciate any help
you can give me.
switchView: function(emailAddr) {
console.log("Switchview Called");
topic.publish(some/node, {
viewParams:{emailAddress:emailAddr}}
);
No comments:
Post a Comment