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

Function prohibit_events

dash/development/_py_components_generation.py:411–426  ·  view source on GitHub ↗

Events have been removed. Raise an error if we see dashEvents or fireEvents. Parameters ---------- props: dict Dictionary with {propName: propMetadata} structure Raises ------- ?

(props)

Source from the content-addressed store, hash-verified

409
410
411def prohibit_events(props):
412 """Events have been removed. Raise an error if we see dashEvents or
413 fireEvents.
414 Parameters
415 ----------
416 props: dict
417 Dictionary with {propName: propMetadata} structure
418 Raises
419 -------
420 ?
421 """
422 if "dashEvents" in props or "fireEvents" in props:
423 raise NonExistentEventException(
424 "Events are no longer supported by dash. Use properties instead, "
425 "eg `n_clicks` instead of a `click` event."
426 )
427
428
429def parse_wildcards(props):

Callers 3

test_docstringFunction · 0.90
test_docstringFunction · 0.90
generate_class_stringFunction · 0.85

Calls 1

Tested by 2

test_docstringFunction · 0.72
test_docstringFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…