From 28fea0a4ccf46ffce9319a748b405783359a54ea Mon Sep 17 00:00:00 2001 From: Ben Paddock Date: Tue, 22 Apr 2014 10:40:25 +0100 Subject: Expose a hide on click function This allows for element-targeted closing of the popover (e.g. via a close button within the popover template). --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index e0ddeda..43c083c 100644 --- a/README.md +++ b/README.md @@ -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 + +``` + +This button lives within the popover template. ### Themes -- cgit v1.2.3