how to hide widget onclick the AlfButton ?
It depends on which widget you are using, is it alfresco OOB widget or your customized one.Your question is too much wide. You need to add much more information than this.
here's what I did :
var toggleTopic = "ALF_HIDE_WIDGET";
var hideWidget = {
rules: [
{
topic: 'ALF_HIDE_WIDGET',
attribute: 'hide',
is: [true]
}
]
};
var firstWidget = {
name : "alfresco/menus/AlfMenuItem",
config : {
label : "Message"
}
};
var secondWidget = {
name: "alfresco/buttons/AlfButton",
publishTopic: toggleTopic,
publishPayload: {
hide: true
},
config: {
label: "Label"
}
};
var finalWidget = {
name : "alfresco/layout/HorizontalWidgets",
config : {
widgetMarginLeft : "5",
widgetMarginRight : "5",
invisibilityConfig: hideWidget,
widgets : [ firstWidget, secondWidget ]
}
};
I want to hide the finalWidget once the button is clicked.
Thanks.
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.