MCPcopy
hub / github.com/plotly/dash / set_props

Method set_props

dash/_callback_context.py:264–271  ·  view source on GitHub ↗
(self, component_id: typing.Union[str, dict], props: dict)

Source from the content-addressed store, hash-verified

262
263 @has_context
264 def set_props(self, component_id: typing.Union[str, dict], props: dict):
265 ctx_value = _get_context_value()
266 _id = stringify_id(component_id)
267 existing = ctx_value.updated_props.get(_id)
268 if existing is not None:
269 ctx_value.updated_props[_id] = {**existing, **props}
270 else:
271 ctx_value.updated_props[_id] = props
272
273 @property
274 @has_context

Callers 1

set_propsFunction · 0.80

Calls 3

_get_context_valueFunction · 0.85
stringify_idFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected