Hi,
i use alfresco/documentlibrary/AlfSelectDocumentListItems widget. i want to see only three items (all, none, invert), but when i set them like that, it looks great but don't work (in default configuratiom without specified widgets property it works):
{
name: "alfresco/documentlibrary/AlfSelectDocumentListItems",
config:{widgets:[
{
name: "alfresco/menus/AlfMenuItem",
config: {
label: "select.all.label",
publishTopic: "DOCUMENT_SELECTION_UPDATE",
publishPayload: {
label: "select.all.label",
value: "selectAll"
}
}
},
{
name: "alfresco/menus/AlfMenuItem",
config: {
label: "select.none.label",
publishTopic: "DOCUMENT_SELECTION_UPDATE",
publishPayload: {
label: "select.none.label",
value: "selectNone"
}
}
},
{
name: "alfresco/menus/AlfMenuItem",
config: {
label: "invert.selection.label",
publishTopic: "DOCUMENT_SELECTION_UPDATE",
publishPayload: {
label: "invert.selection.label",
value: "selectInvert"
}
}
}
]}
},
How to make it work?
Solved! Go to Solution.
You should add "alfresco/core/topics" to define:
define(["dojo/_base/declare",
...
"alfresco/core/topics",
...
],
...
or set directly:
publishTopic: "ALF_DOCLIST_FILE_SELECTION"as it defined in alfresco/core/topics.js file (DOCUMENT_SELECTION_UPDATE: "ALF_DOCLIST_FILE_SELECTION")
You should add "alfresco/core/topics" to define:
define(["dojo/_base/declare",
...
"alfresco/core/topics",
...
],
...
or set directly:
publishTopic: "ALF_DOCLIST_FILE_SELECTION"as it defined in alfresco/core/topics.js file (DOCUMENT_SELECTION_UPDATE: "ALF_DOCLIST_FILE_SELECTION")
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.