AnsweredAssumed Answered

How to specify only necessary items in AlfSelectDocumentListItems?

Question asked by npavlov on Feb 22, 2018
Latest reply on Apr 26, 2018 by npavlov

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?

Outcomes