Skip to content

Commit 79c0f19

Browse files
authored
Merge pull request #609 from facultyai/snippet-names
simplify variable names in snippets
2 parents 74bc9ba + 04374b3 commit 79c0f19

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+142
-141
lines changed

docs/components_page/components/alert.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,30 @@ lead: Provide contextual feedback messages for user actions with the `Alert` com
77

88
Set the color of `Alert` using the `color` argument and one of the eight supported contextual color names.
99

10-
{{example:components/alert/simple.py:simple_alerts}}
10+
{{example:components/alert/simple.py:alerts}}
1111

1212
## Link color
1313

1414
The Bootstrap `alert-link` class can be used to color match links inside alerts to the color of the alert.
1515

16-
{{example:components/alert/link.py:linked_alerts}}
16+
{{example:components/alert/link.py:alerts}}
1717

1818
## Additional content
1919

2020
Alerts can contain additional HTML elements like headings, paragraphs and dividers.
2121

22-
{{example:components/alert/content.py:complex_alert}}
22+
{{example:components/alert/content.py:alert}}
2323

2424
## Dismissing
2525

2626
Set `dismissable=True` to add a dismiss button to the alert which closes the alert on click. You can also use the `is_open` property in callbacks to show or hide the alert. By default the alert appears and disappears with a fade animation. To disable this simply set `fade=False`.
2727

28-
{{example:components/alert/dismiss.py:dimissable_alert}}
28+
{{example:components/alert/dismiss.py:alert}}
2929

3030
## Automatic dismissal
3131

3232
You can have your `Alert` components dismiss themselves by using the `duration` keyword argument. Specify a duration in milliseconds after which you would like the `Alert` to dismiss itself when it first becomes visible.
3333

34-
{{example:components/alert/auto_dismiss.py:auto_dismiss_alert}}
34+
{{example:components/alert/auto_dismiss.py:alert}}
3535

3636
{{apidoc:src/components/Alert.js}}

docs/components_page/components/alert/auto_dismiss.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
library(dashBootstrapComponents)
22
library(dashHtmlComponents)
33

4-
auto_dismiss_alert <- htmlDiv(
4+
alert <- htmlDiv(
55
list(
66
dbcButton("Toggle", id = "alert-toggle-auto", className = "mr-1",
77
n_clicks = 0),

docs/components_page/components/alert/auto_dismiss.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using DashBootstrapComponents, DashHtmlComponents
22

3-
auto_dismiss_alert = html_div([
3+
alert = html_div([
44
dbc_button("Toggle", id="alert-toggle-auto", className="mr-1", n_clicks=0),
55
html_hr(),
66
dbc_alert(

docs/components_page/components/alert/auto_dismiss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import dash_html_components as html
33
from dash.dependencies import Input, Output, State
44

5-
auto_dismiss_alert = html.Div(
5+
alert = html.Div(
66
[
77
dbc.Button(
88
"Toggle", id="alert-toggle-auto", className="mr-1", n_clicks=0

docs/components_page/components/alert/content.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
library(dashBootstrapComponents)
22
library(dashHtmlComponents)
33

4-
complex_alert <- dbcAlert(
4+
alert <- dbcAlert(
55
list(
66
htmlH4("Well done!", className = "alert-heading"),
77
htmlP(

docs/components_page/components/alert/content.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using DashBootstrapComponents, DashHtmlComponents
22

3-
complex_alert = dbc_alert([
3+
alert = dbc_alert([
44
html_h4("Well done!", className="alert-heading"),
55
html_p(
66
"This is a success alert with loads of extra text in it. So much " *

docs/components_page/components/alert/content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import dash_bootstrap_components as dbc
22
import dash_html_components as html
33

4-
complex_alert = dbc.Alert(
4+
alert = dbc.Alert(
55
[
66
html.H4("Well done!", className="alert-heading"),
77
html.P(

docs/components_page/components/alert/dismiss.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
library(dashBootstrapComponents)
22
library(dashHtmlComponents)
33

4-
dimissable_alert <- htmlDiv(
4+
alert <- htmlDiv(
55
list(
66
dbcButton(
77
"Toggle alert with fade", id = "alert-toggle-fade", n_clicks = 0,

docs/components_page/components/alert/dismiss.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using DashBootstrapComponents, DashHtmlComponents
22

3-
dimissable_alert = html_div([
3+
alert = html_div([
44
dbc_button(
55
"Toggle alert with fade",
66
id="alert-toggle-fade",

docs/components_page/components/alert/dismiss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import dash_html_components as html
33
from dash.dependencies import Input, Output, State
44

5-
dimissable_alert = html.Div(
5+
alert = html.Div(
66
[
77
dbc.Button(
88
"Toggle alert with fade",

0 commit comments

Comments
 (0)