Module: alfresco/pickers/SingleItemPicker

alfresco/pickers/SingleItemPicker

Author:
  • Dave Draper
  • David Webster
License:
Source:

Members

cssRequirements :object[]

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

templateString :String

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

widgetsForSubPicker

Source:

Methods

addItemWidgetConfig(widgets, item, index)

Creates the configuration for a single item to be added to the overall AlfVerticalMenuBar item. Currently this is incorrectly coded to assume that site data has been provided (whereas this should actually be a much more abstract method and there should be a "SingleSitePicker" that extends this instance). This will create an AlfMenuBarItem for the site that will publish a request to display an Explorer picker when selected.
Parameters:
Name Type Description
widgets object[] The array of widgets to add the item widget to
item object The item to convert into a widget
index number The index of the item to add
Source:
To Do:
  • Hard coded to site data. See comment in method description about generalising code.

onItemSelected()

Handles the user clicking on a specific item.
Source:

onItemsLoadFailure(payload)

Handles failures to obtain the items to display.
Parameters:
Name Type Description
payload object The published details of the successfully loaded items.
Source:

onItemsLoadSuccess(payload)

Handles the response of requests for the items to display.
Parameters:
Name Type Description
payload object The published details of the successfully loaded items.
Source:

postCreate()

Source: