Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
2ebc0ad2
Commit
2ebc0ad2
authored
Dec 22, 2011
by
Jonathan Ingram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs to show available events on alert
parent
5de1e39a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
docs/javascript.html
docs/javascript.html
+24
-0
No files found.
docs/javascript.html
View file @
2ebc0ad2
...
@@ -750,6 +750,30 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
...
@@ -750,6 +750,30 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
<h4>
.alert('close')
</h4>
<h4>
.alert('close')
</h4>
<p>
Closes an alert.
</p>
<p>
Closes an alert.
</p>
<pre
class=
"prettyprint linenums"
>
$(".alert-message").alert('close')
</pre>
<pre
class=
"prettyprint linenums"
>
$(".alert-message").alert('close')
</pre>
<h3>
Events
</h3>
<p>
Bootstrap's alert class exposes a few events for hooking into alert functionality.
</p>
<table
class=
"zebra-striped"
>
<thead>
<tr>
<th
style=
"width: 150px;"
>
Event
</th>
<th>
Description
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
close
</td>
<td>
This event fires immediately when the
<code>
close
</code>
instance method is called.
</td>
</tr>
<tr>
<td>
closed
</td>
<td>
This event is fired when the alert has been closed (will wait for css transitions to complete).
</td>
</tr>
</tbody>
</table>
<pre
class=
"prettyprint linenums"
>
$('#my-alert').bind('closed', function () {
// do something ...
})
</pre>
<h3>
Demo
</h3>
<h3>
Demo
</h3>
<div
class=
"alert-message warning fade in"
>
<div
class=
"alert-message warning fade in"
>
<a
class=
"close"
data-dismiss=
"alert"
href=
"#"
>
×
</a>
<a
class=
"close"
data-dismiss=
"alert"
href=
"#"
>
×
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment