digicorp/propeller

How to show/open modal programmatically

arnonkahani opened this issue · 4 comments

Hello, is there a way to show modal programmatically ?

Hi,

Could you please elaborate your requirement. This will help us in providing an appropriate solution.
You can also go through the inbuilt events given by Bootstrap for Modalbox. Please refer to the below link:
http://getbootstrap.com/javascript/#modals

@piyush-digicorp the question is clear. There must be a way to open the modal, alert programmatically like in bootstrap with $('#myModal').modal('show');. It make no sense for me to provide alert or modal components when only a user action can open them.

jpic commented

Did you try without arguments ? ie. $('#modal').modal().

@arnonkahani You can use all the Bootstrap Javascript methods for the modal component with Propeller's modal component.