edifice.Component.register_ref

Component.register_ref(reference)[source]

Registers provided reference to this component.

During render, the provided reference will be set to point to the currently rendered instance of this component (i.e. if another instance of the Component is rendered and the RenderEngine decides to reconcile the existing and current instances, the reference will eventually point to that previously existing Component.

Parameters

reference (Reference) – the Reference to register

Returns

The component itself.