Uh oh!
There was an error while loading. Please reload this page.
Add update_title config option - #102
Conversation
- add `update_title` String field to DashConfig struct - use `"Updating..." as default - inject its value into the frontend, to make it available to the dash renderer
| - `update_title::String`: Default ``Updating...``. Configures the document.title | ||
| (the text that appears in a browser tab) text when a callback is being run. | ||
| Set to '' if you don't want the document.title to change or if you | ||
| want to control the document.title through a separate component or | ||
| clientside callback. |
There was a problem hiding this comment.
mostly copied from
https://github.com/plotly/dash/blob/edce37426470b900a0081969af30364e43c9a888/dash/dash.py#L243-L247
except for the None part.
There was a problem hiding this comment.
Only supporting '' is fine by me.
alexcjohnson
commented
May 5, 2021
re: tests - dynamic behavior is covered by the tests in plotly/dash#1315, here it would be fine to just |
etpinard
commented
May 6, 2021
My attempt in -> 4b07cab Thanks for tips! |
alexcjohnson
commented
May 6, 2021
LGTM! I've enabled forks in CircleCI, didn't realize we hadn't done that yet. Would you push an empty commit to see if the tests will run? |
alexcjohnson
commented
May 7, 2021
waralex
commented
May 7, 2021
Yes, we can use |
waralex
commented
May 7, 2021
@alexcjohnson, @etpinard In fact, there is another problem - the components are placed by direct reference to git, and not through the package repository. Apparently I wrote this file when the components were not registered yet. I fixed it in this PR #104. In that #104 unit tests pass, let's check in current one. Perhaps you should just copy the changes from #104 to this PR and merge them within current PR |
alexcjohnson
left a comment
There was a problem hiding this comment.
Great - Thanks @etpinard ! 💃
fixes#101
update_titleString field to DashConfig structTODO:
update_title=nothinginputs?