Hi,
I want to render a parameter whose value is an array of elements (each element has, for example, a name and an identifier). As a result, I should get a list of names (in a string separated by a comma), when you click on the name, you should publish a topic containing the identifier. Any ideas how to implement such a widget?
Now I have a simple widget with html-links but I need to publish a topic instead of following a link.
Solved! Go to Solution.
I add publication function to each item of my list
{...
this._attach(itemNode, "ondijitclick", lang.hitch(this, this.onClick, item.name));
...
},
onClick: function alfresco_navigation_Link__onClick(name,evt) {
event.stop(evt);
if (this.publishTopic != null)
{
this.alfPublish(this.publishTopic, {name:name});
}
}
(by analogy with the widget "alfresco/navigation/Link").
I add publication function to each item of my list
{...
this._attach(itemNode, "ondijitclick", lang.hitch(this, this.onClick, item.name));
...
},
onClick: function alfresco_navigation_Link__onClick(name,evt) {
event.stop(evt);
if (this.publishTopic != null)
{
this.alfPublish(this.publishTopic, {name:name});
}
}
(by analogy with the widget "alfresco/navigation/Link").
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.