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.
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Methods
-
createServiceStore()
-
Creates and returns a new service store.
-
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.
-
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.