Module: alfresco/documentlibrary/_AlfCreateContentMenuItemMixin

alfresco/documentlibrary/_AlfCreateContentMenuItemMixin

This mixin module is used by both the AlfCreateContentMenuBarItem and AlfCreateContentMenuItem and provides the basic payload configuration for requesting dialogs to capture user information for creating content. It also provides tracking for the current Node in which to create content.
Author:
  • Dave Draper
License:
Source:

Members

contentType :string

This is the type of content that will be created. This defaults to "cm:content" but can be overridden through configuration.
Type:
  • string
Default Value:
  • "cm:content"
Source:

dialogCancellationLabel :String

The label for the content creation dialog cancellation button.
Type:
  • String
Default Value:
  • "create-content-menu-item.dialog.cancellation"
Source:

dialogConfirmationLabel :String

The label for the content creation dialog confirmation button.
Type:
  • String
Default Value:
  • "create-content-menu-item.dialog.confirmation"
Source:

dialogTitle :String

The title for the content creation dialog.
Type:
  • String
Default Value:
  • "create-content-menu-item.dialog.title"
Source:

dialogWidth :string

The width of the dialog.
Type:
  • string
Since:
  • 1.0.89
Default Value:
  • "550px"
Source:

formSubmissionTopic :String

The topic published when the content creation dialog is confirmed.
Type:
  • String
Default Value:
  • "ALF_CREATE_CONTENT_REQUEST"
Source:

i18nRequirements :object[]

An array of the i18n files to use with this widget.
Type:
  • object[]
Default Value:
  • [{i18nFile: "./i18n/_AlfCreateContentMenuItemMixin.properties"}]
Source:

mimeType :string

This is the MIME type of the content that will be created. This defaults to "text/plain" but can be overridden through configuration.
Type:
  • string
Default Value:
  • "text/plain"
Source:

publishGlobal :boolean

It is expected that upload will require topics to be published globally, however this can be overridden through configuration.
Type:
  • boolean
Source:

publishTopic :String

This is the topic that will be published when the menu item is clicked. It defaults to the topic requesting a form dialog be displayed but can be overridden through configuration.
Type:
  • String
Default Value:
  • "ALF_CREATE_FORM_DIALOG_REQUEST"
Source:

widgets :object[]

This should be configured to be an array of form control widgets to be placed into the create content dialog.
Type:
  • object[]
Default Value:
  • null
Source:

Methods

onClick()

Source:

onCurrentNodeChange(payload)

This handles publications on the metadataChangeTopic topic to set the location of the current folder
Parameters:
Name Type Description
payload object
Source: