Teek::UI::ComponentHandle Class
A component’s own public surface, returned by WidgetDSL#component -
the disciplined way a parent reaches a child’s named widgets without
falling back to the flat, global ui[] index (which never sees into
a component’s scope at all - see WidgetDSL#[]). Wraps a
(document, scope) pair and resolves names exactly the way ui[]
already does from inside the component’s own block, just usable from
outside it - the parent addresses children through this facade, not
through @document.find or a captured Node.
Inherits: Object
Instance Methods ↑
handle(name)
Parameters
nameSymbol
Returns Handle, nil — nil if this component never declared
name - same nil-on-miss convention as WidgetDSL#[]
initialize(document, scope)
Returns ComponentHandle — a new instance of ComponentHandle
@api private