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
truevalues. 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
trueby default. When
true, features of
data-keyboardcloses the modal when the Esc key is pressed.
data-show: This accepts Boolean values and is set to
falseby default. When
data-showsthe modal when it was initialized. ...