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
Hi @FerusAndBeyond! Thanks for your interest in Dash for R. callback_context is indeed available (since #87).
All that's required is to access app$callback_context() from within a callback -- if you try to call this method from outside a callback, Dash for R will present a helpful reminder.
Here's a demo, apologies that it isn't very interesting, but it will give you the general idea:
Activity
rpkyle commentedon Jun 3, 2020
Hi @FerusAndBeyond! Thanks for your interest in Dash for R.
callback_contextis indeed available (since #87).All that's required is to access
app$callback_context()from within a callback -- if you try to call this method from outside a callback, Dash for R will present a helpful reminder.Here's a demo, apologies that it isn't very interesting, but it will give you the general idea:
Let me know if this helps or you have other questions -- if this answered your question, I'll go ahead and close the issue.
rpkyle commentedon Jun 3, 2020
@FerusAndBeyond There's also a bit about this feature in our online documentation for R, in case it's helpful:
https://dashr.plotly.com/advanced-callbacks
FerusAndBeyond commentedon Jun 3, 2020
@rpkyle Thanks! Must have missed that page and nothing came up when googling. I'll close it.