MCPcopy Create free account
hub / github.com/DenOfEquity/ersatzForge / on_after_component

Method on_after_component

modules/scripts.py:325–332  ·  view source on GitHub ↗

Calls callback after a component is created. The callback function is called with a single argument of type OnComponent.

(self, callback, *, elem_id)

Source from the content-addressed store, hash-verified

323 self.on_before_component_elem_id.append((elem_id, callback))
324
325 def on_after_component(self, callback, *, elem_id):
326 """
327 Calls callback after a component is created. The callback function is called with a single argument of type OnComponent.
328 """
329 if self.on_after_component_elem_id is None:
330 self.on_after_component_elem_id = []
331
332 self.on_after_component_elem_id.append((elem_id, callback))
333
334 def describe(self):
335 """unused"""

Callers 1

uiMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected