Module: alfresco/renderers/MoreInfo

alfresco/renderers/MoreInfo

Author:
  • Dave Draper
License:
Source:

Members

allowedActionsString

The default set of allowed actions defined as a stringified array. This will be token switched into the Actions widget. The reality is that unless an alternative value is specified this will always be the action white-list for the Actions when viewed in the More Info dialog.
Source:

altText :string

Type:
  • string
Default Value:
  • "moreinfo.altTextWithContext.label"
Source:

cssRequirements :object[]

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

currentItem :object

This is the object that the property to be rendered will be retrieved from.
Type:
  • object
Default Value:
  • null
Source:

darkIcon :boolean

Indicates whether or not the More Info icon should be dark (for displaying on a light background). For historical reasons this defaults to false.
Type:
  • boolean
Default Value:
  • false
Source:

highlightPostfix :string

This is the property within the currentItem that should be used to identify the content with in the renderedValue to highlight.
Type:
  • string
Since:
  • 1.0.93
Default Value:
  • ""
Source:

highlightPrefix :string

The prefix string that indicates the start of text to highlight.
Type:
  • string
Since:
  • 1.0.93
Default Value:
  • ""
Source:

i18nRequirements :object

The array of file(s) containing internationalised strings.
Type:
  • object
Default Value:
  • [{i18nFile: "./i18n/MoreInfo.properties"}]
Source:

moreInfoDialog :object

This is used to hold a reference to the information dialog that is popped up when the widget is clicked. The dialog is not instantiated until the first time that a user requests additional information.
Type:
  • object
Default Value:
  • null
Source:

propertyToRender :string

This is required for ensure that the alt text is meaningful. It is the value to include in the alt text and title attributes that identifies the item to the user.
Type:
  • string
Default Value:
  • "displayName"
Source:

widgets :object[]

The default JSON model for the widgets to add to the dialog.
Type:
  • object[]
Source:

xhrRequired :boolean

Used to indicate whether or not the info to display needs to be asynchronously retrieved. Defaults to false assuming that all the data required is currently available in "currentItem".
Type:
  • boolean
Default Value:
  • false
Source:

Methods

addXhrItems()

Overrides the inherited function to create the dialog with the requested data by calling the createMoreInfoDialog function.
Source:

clearLoadingItem()

Overrides the inherited function to intentionally perform no action.
Source:

createMoreInfoDialog()

Creates the dialog containing the information to be displayed
Source:

createWidgetDom()

Overrides the inherited function to construct the DOM for the widget using native browser capabilities.
Since:
  • 1.0.101
Source:

onMoreInfo(evt)

This is called when the user clicks on the "info" symbol and creates a new popup containing the info to be displayed.
Parameters:
Name Type Description
evt object The click event.
Source:

postCreate()

Updates the CSS if required to
Source:

postMixInProperties()

Gets the correct localized alt and title text.
Source: