MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / callback

Function callback

pywebio/output.py:1649–1656  ·  view source on GitHub ↗
(data: Dict)

Source from the content-addressed store, hash-verified

1647 js_func_key = random_str(10)
1648
1649 def callback(data: Dict):
1650 rows = data['rows'] if multiple_select else data['rows'][0]
1651
1652 if "btn" not in data and onselect is not None:
1653 return onselect(rows)
1654
1655 _, cb = actions[data['btn']]
1656 return cb(rows)
1657
1658 callback_id = None
1659 if actions or onselect:

Callers 4

inputFunction · 0.70
onclickMethod · 0.70
callback_coroMethod · 0.50
runMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…