Module: alfresco/renderers/Selector

alfresco/renderers/Selector

This renderer can be used to both indicate whether or not an item is selected and to allow the selection or de-selection the item that it represents. The selection capabilities of this widget are provided by the ItemSelectionMixin module.
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/Selector.css"}]
Source:

disabledOnValues :object[]

An array of values to match against the disableProperty of the currentItem. If any of the values are matched then the selector will be disabled.
Type:
  • object[]
Since:
  • 1.0.70
Default Value:
  • null
Source:

disableProperty :string

The dot-notation property to use in the currentItem to use to indicate when the selector is disabled.
Type:
  • string
Since:
  • 1.0.70
Default Value:
  • null
Source:

Methods

createWidgetDom()

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

isDisabled()

Checks the disabled state of the current item.
Since:
  • 1.0.70
Source:

postCreate()

Checks the disableProperty of the currentItem against the array of values that will cause the selector to be disabled.
Since:
  • 1.0.70
Source:

postMixInProperties()

Set up the attributes to be used when rendering the template.
Source:
Listens to Events:
  • module:alfresco/core/topics#event:DOCUMENT_SELECTION_UPDATE