MCPcopy Index your code
hub / github.com/plotly/dash / func

Function func

tests/integration/callbacks/test_callback_context.py:376–383  ·  view source on GitHub ↗
(n_clicks)

Source from the content-addressed store, hash-verified

374 Output("output", "children"), Input({"type": "btn", "index": ALL}, "n_clicks")
375 )
376 def func(n_clicks):
377 if ctx.triggered:
378 triggered_id, dict_id = next(iter(ctx.triggered_prop_ids.items()))
379
380 assert dict_id == ctx.triggered_id
381
382 if dict_id == {"type": "btn", "index": "myindex"}:
383 return dict_id["index"]
384
385 dash_duo.start_server(app)
386

Callers 15

transformSliderTooltipFunction · 0.85
execute_async_functionFunction · 0.85
_async_invoke_callbackFunction · 0.85
_invoke_callbackFunction · 0.85
assert_contextFunction · 0.85
_wrapperFunction · 0.85
job_fnFunction · 0.85
job_fnFunction · 0.85
wrapperFunction · 0.85
_run_before_hooksMethod · 0.85
_afterMethod · 0.85
crawlLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…