-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add examples on broadcasting variables to subset of states #941
Comments
Thank you for the issue; this could greatly improve the documentation. I think it is not exposed yet |
As far as I know, this is not supported yet 🥲 cf. taipy #1207 |
I am putting this as blocked by Avaiga/taipy#1207 |
Ok. Is this something scheduled for the next Taipy version? Or do you have a workaround? |
There are no workaround available now. What you could do is to have the filter after broadcasting it to all the users |
I can see some PRs are closed on this topic. |
This has been done in develop. There needs to be more documentation. https://docs.taipy.io/en/develop/refmans/reference/taipy.gui.Gui/#taipy.gui.Gui.broadcast_callback def a_callback(state):
gui= state.get_gui()
gui.broadcast_callback(your_callback_sent_to_everyone, [state.location])
def your_callback_sent_to_everyone(state, args):
source_location = args[0]
if source_location == state.location:
... # do what you want |
Description
I could not find other documentation than that to broadcast variable values.
I am managing a location variable pointing to a country or region in the world. In my application I have another variable named information. I want all the other states sharing the same location value as mine to share the same information value as well.
How to broadcast a variable value to a subset of states?
The text was updated successfully, but these errors were encountered: