Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
91c11d64
Unverified
Commit
91c11d64
authored
4 years ago
by
Rohit Sharma
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
toasts: make default duration 5s (#31109)
Co-authored-by:
XhmikosR
<
xhmikosr@gmail.com
>
parent
37ef4e4b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
js/src/toast.js
+1
-1
js/src/toast.js
site/content/docs/5.0/components/toasts.md
+1
-1
site/content/docs/5.0/components/toasts.md
site/content/docs/5.0/migration.md
+4
-0
site/content/docs/5.0/migration.md
with
6 additions
and
2 deletions
+6
-2
js/src/toast.js
+
1
-
1
View file @
91c11d64
...
@@ -48,7 +48,7 @@ const DefaultType = {
...
@@ -48,7 +48,7 @@ const DefaultType = {
const
Default
=
{
const
Default
=
{
animation
:
true
,
animation
:
true
,
autohide
:
true
,
autohide
:
true
,
delay
:
500
delay
:
500
0
}
}
const
SELECTOR_DATA_DISMISS
=
'
[data-dismiss="toast"]
'
const
SELECTOR_DATA_DISMISS
=
'
[data-dismiss="toast"]
'
...
...
This diff is collapsed.
Click to expand it.
site/content/docs/5.0/components/toasts.md
+
1
-
1
View file @
91c11d64
...
@@ -309,7 +309,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
...
@@ -309,7 +309,7 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
<td><code>
delay
</code></td>
<td><code>
delay
</code></td>
<td>
number
</td>
<td>
number
</td>
<td>
<td>
<code>
500
</code>
<code>
500
0
</code>
</td>
</td>
<td>
Delay hiding the toast (ms)
</td>
<td>
Delay hiding the toast (ms)
</td>
</tr>
</tr>
...
...
This diff is collapsed.
Click to expand it.
site/content/docs/5.0/migration.md
+
4
-
0
View file @
91c11d64
...
@@ -24,6 +24,10 @@ toc: true
...
@@ -24,6 +24,10 @@ toc: true
-
Renamed
`whiteList`
option to
`allowList`
-
Renamed
`whiteList`
option to
`allowList`
#### Toasts
-
Make default toast duration 5 seconds
#### Tooltips
#### Tooltips
-
Renamed
`whiteList`
option to
`allowList`
-
Renamed
`whiteList`
option to
`allowList`
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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