digicorp / propeller

Propeller - Develop more, Code less. Propeller is a front-end responsive framework based on Google's Material Design Standards & Bootstrap.
http://propeller.in
MIT License
1.13k stars 141 forks source link

How to show/open modal programmatically #30

Closed arnonkahani closed 6 years ago

arnonkahani commented 7 years ago

Hello, is there a way to show modal programmatically ?

piyush-digicorp commented 7 years ago

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

StarpTech commented 7 years ago

@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 7 years ago

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

monika-digicorp commented 6 years ago

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