Skip to content

Commit d02d478

Browse files
authored
Merge pull request #134 from mdehoog/modal-hide-callback
Documented modal onHide callback change
2 parents 775e86f + 49484b5 commit d02d478

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

server/documents/modules/modal.html.eco

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ themes : ['Default', 'Material']
494494
<h4 class="ui header">Approve / Deny Callbacks</h4>
495495
<p>Modals will automatically tie approve deny callbacks to any positive/approve, negative/deny or ok/cancel buttons.
496496
<div class="ui ignored info message">
497-
If <code>onDeny</code> or <code>onApprove</code> returns false it will prevent the modal from closing
497+
If <code>onDeny</code>, <code>onApprove</code> or <code>onHide</code> returns false it will prevent the modal from closing
498498
</div>
499499
<div class="code" data-demo="true">
500500
$('.ui.basic.test.modal')
@@ -807,9 +807,9 @@ themes : ['Default', 'Material']
807807
<td>Is called after a modal has finished showing animating.</td>
808808
</tr>
809809
<tr>
810-
<td>onHide</td>
810+
<td>onHide($element)</td>
811811
<td>Modal</td>
812-
<td>Is called after a modal starts to hide.</td>
812+
<td>Is called after a modal starts to hide. If the function returns <code>false</code>, the modal will not hide.</td>
813813
</tr>
814814
<tr>
815815
<td>onHidden</td>

0 commit comments

Comments
 (0)