Module: alfresco/node/Metadata

alfresco/node/Metadata

This module has been created to be used by the MetadataGroups widget to render a single metadata property with a label and a value renderer. The value renderer should be defined by the widgets array. The most basic value renderer is expected to be the Property widget.
Author:
  • Dave Draper
License:
Source:

Members

cssRequirements :object[]

An array of the CSS files to use with this widget.
Type:
  • object[]
Default Value:
  • [{cssFile:"./css/Metadata.css"}]
Source:

label :string

The label for the metadata property. An attempt will be made to find a localized version of the configured label so providing NLS property keys is acceptable.
Type:
  • string
Default Value:
  • null
Source:

labelWidth :string

An optional width for the metadata labels. Units should be included.
Type:
  • string
Default Value:
  • null
Source:

templateString :string

The HTML template to use for the widget.
Type:
  • string
Source:

valueWidth :string

An optional width for the metadata values. Units should be included.
Type:
  • string
Default Value:
  • null
Source:

widgets :object[]

The widgets to use to render the metadata value.
Type:
  • object[]
Default Value:
  • null
Source:

Methods

postCreate()

Processes the widgets into the content node.
Source:

postMixInProperties()

Process the configured label to ensure that a label is defined and attempt to find a localized version of that label.
Source: