Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 95ed504

Browse files
Change prop names for loading state to be more Pythonic
1 parent 8d5e4af commit 95ed504

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

dash_renderer/dash_renderer.dev.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dash_renderer/dash_renderer.min.js

Lines changed: 25 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

simple.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@
5959
"height": "498px"
6060
},
6161
children=[
62-
<<<<<<< HEAD
6362
dcc.Loading(id='tabs-content', type='graph')
64-
=======
65-
dcc.Loading(id='tabs-content')
66-
>>>>>>> f860e1c... Add componentName and propName props to loading object, cleanup
6763
]
6864
),
6965
],
@@ -72,7 +68,7 @@
7268
html.Div(
7369
className="w-80 center",
7470
children=[
75-
dcc.Loading(id='output-1', type='cube')
71+
dcc.Loading(id='output-1')
7672
],
7773
),
7874
html.Div(
@@ -170,19 +166,7 @@ def render_content(tab):
170166
)
171167
])
172168

173-
<<<<<<< HEAD
174169
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
175-
=======
176-
177-
@app.callback(
178-
Output(component_id="output-1", component_property="children"),
179-
[Input(component_id="input-1", component_property="value")],
180-
)
181-
def update_output_div(input_value):
182-
time.sleep(1)
183-
return html.H1(className="tc yellow mt4", children=["{}".format(input_value)])
184-
>>>>>>> f860e1c... Add componentName and propName props to loading object, cleanup
185-
186170

187171
if __name__ == "__main__":
188172
app.run_server(debug=True)

0 commit comments

Comments
 (0)