diff options
Diffstat (limited to 'docs/components/modal.md')
| -rw-r--r-- | docs/components/modal.md | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/components/modal.md b/docs/components/modal.md index f3c29dac6..72cdbe565 100644 --- a/docs/components/modal.md +++ b/docs/components/modal.md @@ -1,6 +1,7 @@ --- layout: docs title: Modal +description: Learn how to use Bootstrap's modals to add dialog prompts to your site. group: components --- @@ -297,7 +298,7 @@ To take advantage of the Bootstrap grid system within a modal, just nest `.conta </div> </div> <div class="modal-footer"> - <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> + <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> @@ -412,6 +413,12 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap <td>Closes the modal when escape key is pressed</td> </tr> <tr> + <td>focus</td> + <td>boolean</td> + <td>true</td> + <td>Puts the focus on the modal when initialized.</td> + </tr> + <tr> <td>show</td> <td>boolean</td> <td>true</td> @@ -480,10 +487,6 @@ Bootstrap's modal class exposes a few events for hooking into modal functionalit <td>hidden.bs.modal</td> <td>This event is fired when the modal has finished being hidden from the user (will wait for CSS transitions to complete).</td> </tr> - <tr> - <td>loaded.bs.modal</td> - <td>This event is fired when the modal has loaded content using the <code>remote</code> option.</td> - </tr> </tbody> </table> </div> |
