diff options
| author | nohros | 2014-04-22 15:55:45 -0300 |
|---|---|---|
| committer | nohros | 2014-04-22 15:55:45 -0300 |
| commit | b5af5fc5248ba2f2b10131ff3402febc695e6795 (patch) | |
| tree | 83da70689e13081d6a9c6fc031c67735e0425cca /README.md | |
| parent | cf9656eace55b4fe6150693024074130de3095d3 (diff) | |
| parent | 28fea0a4ccf46ffce9319a748b405783359a54ea (diff) | |
| download | nsPopover-master.tar.bz2 | |
Expose a hide on click function
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -127,7 +127,15 @@ the possible combinations of [position] and [alignment]. Whether or not to hide the popover when it is clicked on, default: ``true``. +### Programmatic Hiding of the Popover +Register the ``hidePopover()`` function against a ``ng-click`` directive to hide the popover when a specific element is clicked (e.g. a close button): + +```html +<button ng-click="hidePopover()">Close</button> +``` + +This button lives within the popover template. ### Themes |
