Class: AppDropdownController

AppDropdownDirective~ AppDropdownController


new AppDropdownController($scope)

The controller governing the directive's state and it's interaction with
the outside world

Parameters:
Name Type Description
$scope

a reference to the angularjs scope of the component

Source:

Methods


<static> factory($scope)

Factory to create the controller; used as the .controller member of the
directive

Parameters:
Name Type Description
$scope

a reference to the angularjs scope of the component

Source:

isSelected(item)

Check whether one item is already selected.

Parameters:
Name Type Description
item

the item to check

Source:

select(item)

Select one item from the dropdown menu. If multiple items can be selected
toggle the item.

Parameters:
Name Type Description
item

the item to select

Source:

selectedChangedHandler()

Internal callback to react on change of selection; sets the internal
state, the display value of the dropdown, if it needs to display a
placeholder etc.

Source: