O'Reilly logo

Bootstrap for Rails by Syed Fazle Rahman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required