Module: alfresco/documentlibrary/views/layouts/AlfFilmStripViewDocument

alfresco/documentlibrary/views/layouts/AlfFilmStripViewDocument

This extends the standard document module to add in support for showing thumbnails for containers and previews for documents. It was written specifically to support the filmstrip view.
Author:
  • Dave Draper
License:
Source:

Members

_documentRequested :boolean

Tracks whether or not the document has already been rendered
Type:
  • boolean
Default Value:
  • false
Source:

heightAdjustment :number

This is used to set the heightAdjustment of the rendered previewer.
Type:
  • number
Since:
  • 1.0.41
Default Value:
  • 0
Source:

heightMode :string

This is used to set the heightMode of the rendered previewer.
Type:
  • string
Since:
  • 1.0.41
Default Value:
  • "AUTO"
Source:

previewerPluginOverrides :object[]

The value configured is passed to the widgetsForPluginsOverrides of the widgetsForPluginsOverrides that is rendered by default.
Type:
  • object[]
Since:
  • 1.0.51
Default Value:
  • null
Source:

widgetsForContainer :array

Defines the widgets to use for containers.
Type:
  • array
Source:

Methods

postCreate()

Sets up a NodeRef specific subscription if the current item is a document (such that the document data is only requested if asked for by the Film Strip View) and if the current item is a container then the standard thumbnail is rendered
Source:

postMixInProperties()

Overrides the inherited function to prevent the subscription to the standard document request from being created.
Source:

render()

This function is provided so that explicit requests can be made to generate the preview
Source:

requestDocument(nodeRef, payload)

Handles requests to obtain document data in order create a document preview. The specific node is requested via the DocumentService.
Parameters:
Name Type Description
nodeRef string The NodeRef to request the data for
payload object The payload of the request
Source:

resizeThumbnails()

This function is only called when a container thumbnail is being displayed and it will update the thumbnail image as the overall size of the containing DOM element changes.
Source: