Book Image

Bootstrap for Rails

By : Syed F Rahman
Book Image

Bootstrap for Rails

By: Syed F Rahman

Overview of this book

Table of Contents (18 chapters)
Bootstrap for Rails
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Additional Bootstrap modal features


Bootstrap provides many features for the modal component. These features are generally provided as JSON properties, while triggering the modal component. Alternatively, you can use these features by using custom data-* attributes in the .modal element. Bootstrap's additional features are:

  • data-backdrop: This attribute accepts static or true values. When set to static, it disables the closing of the modal when clicked outside the modal body.

  • data-keyboard: This accepts Boolean values and is set to true by default. When true, features of data-keyboard closes the modal when the Esc key is pressed.

  • data-show: This accepts Boolean values and is set to false by default. When true, data-shows the modal when it was initialized.