You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would very much appreciate this feature as well. I am having trouble using the workaround. While I will be able to do it, it seems like a useful feature to be able to config, rather than making messy code.
The undo button does not change anything for my dash app, which has input box and button.
My function looks like this:
@app.callback(Output('Docs', 'children'),
[Input('button', 'n_clicks')],
[State('input', 'value')])
def clean_data(n_clicks, input):
if n_clicks is not None and input is not None:
return ...
For example, I enter “A” in the input box and click the button, then enter “B” in the input box and click the button. Then clicking undo nothing is changed. I am hoping that the undo can go back to the result for “A”.
Is there any update on an easy option to remove the Undo-Redo button? I'll add my support for an easy toggle option as the button currently gets in the way of our dashboards.
I would like the undo-button but have no control over where it is displayed. For example, I don't want its position fixed but would like it as part of my menu bar as a relative element. A better feature would be to be able to supply positional css straight to the element, including display: none.
I would like the undo-button but have no control over where it is displayed. For example, I don't want its position fixed but would like it as part of my menu bar as a relative element. A better feature would be to be able to supply positional css straight to the element, including display: none.
hmm What's wrong with using the ._dash-undo-redo css class and add your desired custom style into your css stylesheet?
Activity
charleyferrari commentedon Apr 30, 2018
@Moisan Thanks for writing in. This seems like a good feature to have within Dash. Adding some tags to encourage some discussion and collaboration.
ebber commentedon May 16, 2018
Would very much appreciate this feature as well. I am having trouble using the workaround. While I will be able to do it, it seems like a useful feature to be able to config, rather than making messy code.
radekwlsk commentedon Aug 3, 2018
Is conditionally removing
<Toolbar/>fromin dash-renderer/src/AppContainer.react.js enough to get rid of it without breaking other things?
Myijin commentedon Oct 17, 2018
The undo button does not change anything for my dash app, which has input box and button.
My function looks like this:
For example, I enter “A” in the input box and click the button, then enter “B” in the input box and click the button. Then clicking undo nothing is changed. I am hoping that the undo can go back to the result for “A”.
rmarren1 commentedon Oct 19, 2018
@Myijin I think this issue describes the behavior you are talking about plotly/dash-renderer#66, does that sound right?
Myijin commentedon Oct 19, 2018
@rmarren1 That's right. When I only use the input box, the undo can go back to previous input. But it's not working after using button.
rmarren1 commentedon Oct 19, 2018
@Myijin Okay, I have a PR to fix this that is ready but have not merged, I'll see if I can expedite that
vanbenschoten commentedon Oct 19, 2018
Is there any update on an easy option to remove the Undo-Redo button? I'll add my support for an easy toggle option as the button currently gets in the way of our dashboards.
T4rk1n commentedon Oct 19, 2018
Include a css file in the assets folder with this:
vanbenschoten commentedon Oct 19, 2018
@T4rk1n thanks! That took care of the issue (though I still think a toggle feature would be helpful as well)
eddy-ojb commentedon Nov 11, 2018
I would like the undo-button but have no control over where it is displayed. For example, I don't want its position fixed but would like it as part of my menu bar as a relative element. A better feature would be to be able to supply positional css straight to the element, including display: none.
Akronix commentedon Nov 14, 2018
hmm What's wrong with using the
._dash-undo-redocss class and add your desired custom style into your css stylesheet?[-]Add an option to remove the undo-redo button.[/-][+]Turn off undo/redo by default in Dash 1.0[/+]