Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Hoe to close aSide ? #10

Closed
marcolino opened this issue Feb 27, 2015 · 2 comments
Closed

Hoe to close aSide ? #10

marcolino opened this issue Feb 27, 2015 · 2 comments

Comments

@marcolino
Copy link

I don't know if the intended behaviour of "Ok" and "Cancel" buttons in your aSide demo is to close the sidebar, but they do not close it... How can I programmatically force the closure of the aside sidebar (using a button, for instance, and not clicking outside the sidebar...)?

@dbtek
Copy link
Owner

dbtek commented Feb 27, 2015

As it's documented on ui-bootstrap:

The open method returns a modal instance, an object with the following properties:
close(result) - a method that can be used to close a modal, passing a result
dismiss(reason) - a method that can be used to dismiss a modal, passing a reason
result - a promise that is resolved when a modal is closed and rejected when a modal is dismissed
opened - a promise that is resolved when a modal gets opened after downloading content's template and resolving all variables

$dismiss() and $close() methods are only available inside the aside.

@dbtek dbtek closed this as completed Feb 27, 2015
@marcolino
Copy link
Author

sorry, I was using a wrong markup... :-)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants