Module: alfresco/documentlibrary/AlfDocumentFilters

alfresco/documentlibrary/AlfDocumentFilters

This should be used to wrap a set of AlfDocumentFilters in order to achieve the "twisty" and correct look and feel as expected in a document library.
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/AlfDocumentFilters.css"}]
Source:

filterPrefsName :string

Type:
  • string
Default Value:
  • "docListFilterPref"
Source:

i18nRequirements :object[]

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

moreFiltersList :array

Type:
  • array
Default Value:
  • null
Source:

templateString :String

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

Methods

addFilter(widget, insertIndex)

Adds supplied widget to the 'contentNode' if it inherits from 'alfresco/documentlibrary/AlfDocumentFilter'
Parameters:
Name Type Description
widget object The widget to be added
insertIndex integer The index to add the widget at
Source:

addMoreFilter()

Add a filter than will be initially hidden but will be revealed when clicking on the "More Choices" link
Source:

allWidgetsProcessed(widgets)

Overrides the inherited function to iterate over the processed widgets and call the 'addFilter' function passing each one as an argument.
Parameters:
Name Type Description
widgets object[] The widgets that were created.
Source:

onShowLessClick()

Source:

onShowMoreClick()

Source:

postMixInProperties()

Extends the inherited function to set up the localized labels for the show more and show less links.
Source: