Module: alfresco/renderers/GalleryThumbnail

alfresco/renderers/GalleryThumbnail

Extends the standard thumbnail renderer to provide a scaleable thumbnail for use in the gallery view (although it could be used in other situations).
Author:
  • Dave Draper
License:
Source:

Members

cropToFit :boolean

Overrides the inherited default to crop the image to fit within the thumbnail.
Type:
  • boolean
Since:
  • 1.0.40
Default Value:
  • true
Source:

cssRequirements :object[]

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

customClasses :string

Adds the "gallery" CSS classes the main DOM node defined in the template
Type:
  • string
Default Value:
  • "gallery"
Source:

renditionName :string

The type of rendition to use for the thumbnail
Type:
  • string
Default Value:
  • "imgpreview"
Source:

updateOnSelection :boolean

Overrides the default configuration function to ensure that the gallery thumbnail is highlighted on selection.
Type:
  • boolean
Since:
  • 1.0.40
Default Value:
  • true
Source:

widgetsForSelectBar

Defines the widget definition model to include in the select bar.
Source:

Methods

blur()

Source:

createWidgetDom()

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

focus()

Focuses the domNode. This has been added to support the dijit/_KeyNavContainer functions mixed into the document library views to allow easier keyboard navigation.
Source:

getFolderImage() → {boolean}

Source:
Returns:
Type
boolean

postCreate()

Calls processWidgets
Source:

resize(dimensions)

Extends the inherited function to call setOverlayWidths after the thumbnail is resized.
Parameters:
Name Type Description
dimensions object
Source:

setOverlayWidths(dimensions)

Parameters:
Name Type Description
dimensions object The thumbnail dimensions
Since:
  • 1.0.40
Source: