optional required

Dropdown Directives
Create & Control Semantic UI Dropdowns with Angular Directives

sm-dropdown
Creates a dropdown.

Attributes
Callback Attributes
Example


        
{{ model0 }}

sm-dropdown-bind
A lightweight attribute directive which calls dropdown() on the element with the settings object passed to the attribute. Using this directive means you need to manage the communication between Angular and Semantic UI yourself.



        

Behavior Directives

These attribute directives invoke a behavior on the component where the attribute value can be one of the following formats:

String
Object
Example


        
Execute Simple Behavior Execute Advanced Behavior

sm-dropdown-toggle / sm-dropdown-show / sm-dropdown-hide
When a DOM event fires on the element with the directive, it can command dropdown(s) to toggle visibility.



        
Toggle Show Hide

sm-dropdown-clear
When a DOM event fires on the element with the directive, it can command dropdown(s) to clear their current values.



        
Clear

sm-dropdown-restore-defaults
When a DOM event fires on the element with the directive, it can command dropdown(s) to restore their initial values.



        
Clear Reset Defaults

sm-dropdown-hide-others
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-restore-default-text
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-restore-default-value
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-save-defaults
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-set-selected
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-set-text
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-set-value
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-bind-touch-events
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-mouse-events
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-bind-intent
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-unbind-intent
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-set-active
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-set-visible
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-remove-active
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.

sm-dropdown-remove-visible
When a DOM event fires on the element with the directive, it can command dropdown(s) to execute the behavior.