Module: alfresco/forms/controls/utilities/UseServiceStoreMixin

alfresco/forms/controls/utilities/UseServiceStoreMixin

This mixin was created as common code was required by both the ComboBox and FilteringSelect form controls. It provides functions for creating and working with a ServiceStore.
Author:
  • Dave Draper
License:
Source:

Methods

createServiceStore()

Creates and returns a new service store.
Source:

getInitialOptions(config)

Overrides the inherited function to intentionally do nothing as the ServiceStore will retrieve the initial options.
Parameters:
Name Type Description
config object The options configuration
Since:
  • 1.0.96
Source:

searchAll()

This function is used to get all the available options based on the value currently entered into the ComboBox. It is used when the user clicks on the down arrow (without entering any text) and overrides the default Dojo ComboBox implementation which searches on the empty string.
Source:

showOptionsBasedOnValue()

In vanilla Dojo, when you open either a ComboBox or FilteringSelect you will get all options, not those filtered on the current form control value. This function can be called to override the default _startSearchAll function with one that uses the current value.
Source: