ComponentDocument extension
A layout document read as a component definition.
Properties
- componentRoot → String?
-
Available on LayoutDocument, provided by the ComponentDocument extension
The definition's root node id.no setter - componentType → String?
-
Available on LayoutDocument, provided by the ComponentDocument extension
The component's type name (itswidget.type); null when it isn't one.no setter -
componentVariables
→ List<
Variable> -
Available on LayoutDocument, provided by the ComponentDocument extension
Its own variables: one set per instance (keyed by its root, as a canvas's are).no setter - isComponent → bool
-
Available on LayoutDocument, provided by the ComponentDocument extension
Whether it is a component definition: awidgetdeclaration with a type, and exactly one root.no setter -
previews
→ List<
ComponentPreview> -
Available on LayoutDocument, provided by the ComponentDocument extension
Its previews (previews).no setter - widget → WidgetSpec?
-
Available on LayoutDocument, provided by the ComponentDocument extension
Its declaration (widget), or null when it isn't a component.no setter
Methods
-
callsTo(
Set< String> types) → Iterable<Node> -
Available on LayoutDocument, provided by the ComponentDocument extension
The call nodes in it: nodes whose type is one oftypes(component type names).