Create & Control Semantic UI Dropdowns with Angular Directives
optional
required
model
=
a variable which represents the currently selected option(s) in the dropdown.items
=
the iterable object which populates the options in the dropdown.label
&
an expression which uses the item variable to determine what should be the label.value
&
an expression which uses the item variable to determine what should be the value.settings
=
reference to a settings object to pass to the initialization function.default-text
=
a reference to a string to be used as a placeholder when no option(s) are selected.on-init
=
Callback once the module is initialized, passing the initialized element as the first argument.on-change
=
Callback after a dropdown value changes. Receives the name and value of selection and the active menu element.on-add
=
Callback after a dropdown selection is added using a multiple select dropdown, only receives the added value.on-remove
=
Callback after a dropdown selection is removed using a multiple select dropdown, only receives the removed value.on-label-create
=
Callback before a label is added to the dropdown. Allows you to modify a label before it is added. Expects $label
to be returned.on-label-select
=
Callback after a label is selected by a user.on-no-results
=
Callback after a dropdown is searched with no matching values.on-show
=
Callback after a dropdown is shown.on-hide
=
Callback after a dropdown is hidden.These attribute directives invoke a behavior on the component where the attribute value can be one of the following formats:
$
@
A selector string.evt
@
The event string which triggers the behavior ('click' by default).enabled
=
A boolean value which determines whether or not the behavior should be called when the event occurs.value
=
The first argument to pass to the behavior if it requires one.