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

Method before_component

modules/scripts.py:294–302  ·  view source on GitHub ↗

Called before a component is created. Use elem_id/label fields of kwargs to figure out which component it is. This can be useful to inject your own components somewhere in the middle of vanilla UI. You can return created components in the ui() function to add the

(self, component, **kwargs)

Source from the content-addressed store, hash-verified

292 pass
293
294 def before_component(self, component, **kwargs):
295 """
296 Called before a component is created.
297 Use elem_id/label fields of kwargs to figure out which component it is.
298 This can be useful to inject your own components somewhere in the middle of vanilla UI.
299 You can return created components in the ui() function to add them to the list of arguments for your processing functions
300 """
301
302 pass
303
304 def after_component(self, component, **kwargs):
305 """

Callers 3

before_componentMethod · 0.45
IOComponent_initFunction · 0.45
BlockContext_initFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected