optional required

Modal Directives
Create & Control Semantic UI Modals with Angular Directives

sm-modal
Creates a modal.

Attributes
Callback Attributes
Example


        
Archive Old Messages

Your inbox is getting full, would you like us to enable automatic archiving of old messages?

No
Yes

sm-modal-bind
A lightweight attribute directive which calls modal() 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-modal-show
When a DOM event fires on the element with the directive, it can command modal(s) to be shown.



        
Show
Archive Old Messages
Your inbox is getting full, would you like us to enable automatic archiving of old messages?
No
Yes

sm-modal-hide
When a DOM event fires on the element with the directive, it can command modal(s) to be hidden.

sm-modal-toggle
When a DOM event fires on the element with the directive, it can command modal(s) to toggle their visibility.

sm-modal-refresh
When a DOM event fires on the element with the directive, it can command modal(s) to center themselves on the page.

sm-modal-show-dimmer
When a DOM event fires on the element with the directive, it can command modal(s) to show their dimmer.

sm-modal-hide-dimmer
When a DOM event fires on the element with the directive, it can command modal(s) to hide their dimmer.

sm-modal-hide-others
When a DOM event fires on the element with the directive, it can command modal(s) that aren't the selected ones to be hidden.

sm-modal-hide-all
When a DOM event fires on the element with the directive, it can command modal(s) to hide all visible modals in the same dimmer.

sm-modal-cache-sizes
When a DOM event fires on the element with the directive, it can command modal(s) to cache their current size.

sm-modal-set-active
When a DOM event fires on the element with the directive, it can command modal(s) to make themselves active.