optional required

Popup Directives
Create & Control Semantic UI Popups with Angular Directives

sm-popup
Adds a popup to the current element.

Attributes
Callback Attributes
Example


        
I have a popup

sm-popup-bind
A lightweight attribute directive which calls popup() 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.



        
I have a popup as well

sm-popup-inline
Adds the following detached popup to the current element.

Attributes
Callback Attributes
Example


        
My popup follows me
Hi
I'm right behind you.

sm-popup-display
Adds the named detached popup to the current element.

Attributes
Callback Attributes
Example


        
I can exist anywhere. My popup is anywhere

sm-popup-detached
A popup that can be shown by the previous element or by an element with the sm-popup-display directive with the name defined on this element.

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-popup-show / sm-popup-hide / sm-popup-toggle
When a DOM event fires on the element with the directive, it can command popup(s) to be shown or hidden.



        
Hey, look at me!

Show Hide Toggle

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



        
Hey, look at me! Me too!

Show Hide All

sm-popup-reposition
When a DOM event fires on the element with the directive, it can command popup(s) to be adjusted when content size changes.

sm-popup-destroy
When a DOM event fires on the element with the directive, it can command popup(s) to be removed from the page with all events.

sm-popup-remove
When a DOM event fires on the element with the directive, it can command popup(s) to be removed from the page.