Module: alfresco/lists/SortFieldSelect

alfresco/lists/SortFieldSelect

A specialization of the AlfMenuBarSelect that should be used for selecting the field on which an AlfSortablePaginatedList should be sorted.
Since:
  • 1.0.75
Author:
  • Dave Draper
License:
Source:

Example

Example showing the configuration of a couple of sort options

{
  name: "alfresco/lists/SortFieldSelect",
  config: {
    sortFieldOptions: [
      { 
        label: "Display Name", 
        value: "fullName" 
      },
      {
        label: "User Name", 
        value: "userName"
      }
    ]
  }
}

Members

selectionTopic :boolean

Overrides the default selectionTopic attribute to be the expected sort topic.
Type:
  • boolean
Source:

sortFieldOptions :SortFieldOption[]

An array of the sort options to be rendered.
Type:
  • SortFieldOption[]
Default Value:
  • null
Source:

Methods

getSortFieldOptions()

Source:

postMixInProperties()

Extends the inherited function to call getSortFieldOptions to generate the AlfCheckableMenuItems to populate the menu with.
Source: