This is a customization of the AlfFilteringMenuItem that
filters the configured document library action based on whether or not the current user has permission to
use them.
Members
-
cssRequirements :object[]
-
An array of the CSS files to use with this widget.
Type:
- object[]
- Default Value:
- [{cssFile:"./css/AlfDocumentActionMenuItem.css"}]
- Source:
-
i18nScope :string
-
Set the i18n scope so that labels are picked up from the wrapped toolbar message scope.
Type:
- string
- Default Value:
- "Alfresco.DocListToolbar"
- Source:
Methods
-
filter(payload)
-
This implements the filter function extension point to check the current menu items configuration against the user permissions and aspects as provided in the publication payload. This code is based on the second half of the "onselectedItemsChanged" function from the "toolbar.js" file. It should be kept in-sync with any updates made to that file.
Parameters:
Name Type Description payload
object The payload published on the filter topic -
postCreate()
-
Extends the superclass function to set the filterTopic attribute and set the "toolbar" CSS class on the parent node which "tricks" legacy action configuration into showing the correct icon.