This is a customization of the standard menu bar item that
mixes in the ability to determine whether or not the current user has the ability to create content
at the current rendered location. This was created for use in the document library (for the "Create..." menu
but is applicable for use anywhere where user access rights need to be verified.
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Mixes In
Members
-
i18nRequirements :object[]
-
An array of the i18n files to use with this widget.
Type:
- object[]
- Default Value:
- [{i18nFile: "./i18n/AlfCreateContentMenuBarPopup.properties"}]
- Source:
-
iconClass :string
-
Sets a default icon class for the menu bar popup
Type:
- string
- Default Value:
- "alf-create-icon"
- Source:
-
label :string
-
Sets a default label key for the menu bar popup
Type:
- string
- Default Value:
- "default.label"
- Source:
Methods
-
postCreate()
-
Extends the superclass function to subscribe to the userAccessChangeTopic topic which is handled by [onUserAcess]{@link module:alfresco/documentlibrary/_AlfCreateContentPermissionsMixin#onUserAcess} and hashChangeTopic which is handled by [onFilterChange]{@link module:alfresco/documentlibrary/_AlfCreateContentPermissionsMixin#onFilterChange}