bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

$modal.open().opened with animations

Open bblack opened this issue 12 years ago • 6 comments

I would like the opened promise of $modal.open() to resolve after any animations associated with opening the modal. Or, if the intent of opened isn't to fire after the template has been rendered, but merely loaded, I'd like a way to run some code after the template has been rendered, and the show animation has completed.

bblack avatar Jul 01 '14 20:07 bblack

What would be your use case for such request?

pkozlowski-opensource avatar Jul 01 '14 20:07 pkozlowski-opensource

Set focus on the first input in the modal.

bblack avatar Jul 01 '14 21:07 bblack

I have another use case for this. I'm doing a series of modals, and I'd like the next one to show up after the previous one is no longer visible. Currently, they overlap for a second, and I am using the modal instance callbacks to trigger moving on to the next step.

jacobmumm avatar Jul 28 '14 20:07 jacobmumm

Here's my use case: I add a form to the modal and would like to attach event handler for validation using bootstrapValidator, e.g. $("form").bootstrapValidator(...) However, the form is not rendered yet on opened event...

ghost avatar Aug 02 '14 00:08 ghost

Here is my use case: I want to bind a editor plugin to textarea whthin modal, write to view file will make ng-model broken

williamherry avatar Nov 01 '14 03:11 williamherry

One can create a custom directive to set focus on a particular input, and I'd say that would be the recommended approach for any similar DOM manipulation.

wesleycho avatar Aug 01 '15 18:08 wesleycho