Class: upDistribution

upDistribution


new upDistribution()

Provides access to a distribution or multiple selection control through javascript.

Methods


getSearchedItems()

Get all items of the Searched-List (Pool).

Returns:
Type
Array.<upGroovySelectOption>

getSelectedItems()

Get all items of the Selected-List.

Returns:
Type
Array.<upGroovySelectOption>

hasSelectedItems()

Are there any item in the Selected-List.

Returns:
Type
boolean

initState()

Returns a string representing the current initialization state of the Distribution control

states: pending, resolved, rejected

Returns:

state

Type
String

loadItemsByGuid(guidList)

Searchs for specific items by their guid and moves them to Selected-List.

Parameters:
Name Type Description
guidList Array

Array with guids.


moveAllToSelected( [triggerOnChange])

Moves all items (selected or not) from the Searched-List (Pool) to Selected-List

Parameters:
Name Type Argument Default Description
triggerOnChange boolean <optional>
true

moveToSelected( [triggerOnChange])

Moves all selected items from the Searched-List (Pool) to the Selected-List

Parameters:
Name Type Argument Default Description
triggerOnChange boolean <optional>
true

removeAllFromSelected( [triggerOnChange])

Moves all items (selected or not) from the Selected-List to Searched-List (Pool)

Parameters:
Name Type Argument Default Description
triggerOnChange boolean <optional>
true

removeFromSelected( [triggerOnChange])

Moves all selected items from the Selected-List to the Searched-List (Pool)

Parameters:
Name Type Argument Default Description
triggerOnChange boolean <optional>
true

reset( [triggerOnChange])

Reset control.

Parameters:
Name Type Argument Default Description
triggerOnChange boolean <optional>
true

Searchs for items containing value and write them to Searched-List.

Parameters:
Name Type Description
value String

The search value.


selectItemsByGuid(guidList, modus [, async])

Searchs for specific items by guid and moves them to Selected-List.

Parameters:
Name Type Argument Default Description
guidList Array.<String>

Array with guids.

modus String

Replace or append items in Selected-List.

async boolean <optional>
true

Load items via synchronous or asynchronous XMLHttpRequest