Module: alfresco/lists/SortOrderToggle

alfresco/lists/SortOrderToggle

A specialization of the AlfMenubarToggle that should be used for changing the sort order of an AlfSortablePaginatedList.
Since:
  • 1.0.75
Author:
  • Dave Draper
License:
Source:

Example

Simple example for sort order toggling - just include in the page model!

{
  name: "alfresco/lists/SortOrderToggle"
}

Members

checked :boolean

Overrides the default checked value to be true.
Type:
  • boolean
Default Value:
  • true
Source:

checkedValue :boolean

Overrides the default checkedValue attribute to be "ascending" to match the value in sort request payloads.
Type:
  • boolean
Default Value:
  • "ascending"
Source:

offConfig :object

Overrides and explicitly sets the offConfig for sorting.
Type:
  • object
Default Value:
  • {iconClass: "alf-sort-descending-icon", publishTopic: topics.SORT_LIST, publishPayload: {direction: "descending"}}
Source:

onConfig :object

Overrides and explicitly sets the onConfig for sorting.
Type:
  • object
Default Value:
  • {iconClass: "alf-sort-ascending-icon", publishTopic: topics.SORT_LIST, publishPayload: {direction: "ascending"}}
Source:

subscriptionAttribute :boolean

Overrides the default subscriptionAttribute attribute to be "direction" to match the key in sort request payloads.
Type:
  • boolean
Default Value:
  • "direction"
Source:

subscriptionTopic :boolean

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