Module: alfresco/forms/controls/SitePicker

alfresco/forms/controls/SitePicker

A form control for allowing the user to select sites from the Alfresco repository.

Author:
  • Dave Draper
License:
Source:

Example

Sample usage:

{
   name: "alfresco/forms/Form",
   config: {
      okButtonPublishTopic: "SITES_PICKED",
      okButtonLabel: "OK",
      widgets: [
         {
            name: "alfresco/forms/controls/SitePicker",
            config: {
               id: "SITE_PICKER",
               name: "site",
               description: "Pick a site, any site",
               label: "Site",
               singleItemMode: true
            }
         }
      ]
   }
}

Members

i18nRequirements :Object[]

An array of the i18n files to use with this widget.
Type:
  • Object[]
Source:

itemKey :string

Overrides the default itemKey to be "shortName"
Type:
  • string
Default Value:
  • "shortName"
Source:

removeButtonLabel :string

The label for the remove button of this control.
Type:
  • string
Since:
  • 1.0.102
Default Value:
  • null
Source:

selectButtonLabel :string

The label for the select button of this control.
Type:
  • string
Since:
  • 1.0.102
Default Value:
  • null
Source:

selectDialogTitle :string

The title for the pop-up selection dialog of this control.
Type:
  • string
Since:
  • 1.0.102
Default Value:
  • null
Source:

singleItemMode :boolean

Whether to select multiple sites in the picker or just one
Type:
  • boolean
Default Value:
  • true
Source:

widgetsForControl :object

Overridden widgets model for this control.
Type:
  • object
Since:
  • 1.0.102
Source:

Methods

postMixInProperties()

Processes the singleItemMode and defaults various UI labels in case they have not been configured externally.
Source: