Teek API Documentation

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
  • name Symbol

Returns Handle, nilnil 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