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

add persistence to html.Button's n_click property #197

Open
michaelbabyn opened this issue Jul 20, 2021 · 2 comments
Open

add persistence to html.Button's n_click property #197

michaelbabyn opened this issue Jul 20, 2021 · 2 comments

Comments

@michaelbabyn
Copy link

I wonder if it makes sense to add persistence to html.Button since n_clicks is often used as an input to callbacks.

cc @plotly/dash-core , @sudburyrob

@alexcjohnson
Copy link
Collaborator

Interesting… normally n_clicks is used as a trigger, it’s value irrelevant. Do you have an example use case for persistence here?

@michaelbabyn
Copy link
Author

The use case here is a multipage app that generates a graph after being triggered by a button click (which the users presses after secting a couple of other controls which are used as State). So the value of n_clicks would in effect be storing "whether the user had decided to generate a graph or not".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants