We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 a binding_meta keyword to Python Component to store extra information to be sent to the backend with the bindings trigger.
binding_meta
Component
from dazzler.system import Page, BindingContext, Trigger from dazzler.components import core page = Page( __name__, core.Container([ core.Button( f'click {i}', identity=f'btn{i}', binding_meta={'meta': 'info', 'index': i} ) for i in range(3) ]) ) @page.bind( Trigger( aspect='clicks', identity='btn', regex=True, ) ) async def on_clicks(ctx: BindingContext): print(ctx.trigger.meta['index'])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add a
binding_meta
keyword to PythonComponent
to store extra information to be sent to the backend with the bindings trigger.The text was updated successfully, but these errors were encountered: