Components
Entries of the document's components lane.
2 methods: createComponent, loadComponent.
createComponent - Component
A component written inline — evaluates to exactly this document.
role step, type component, valid on components, returns component, default key component.
| Arg | Type | Default | Min | Max | Options | Description |
|---|---|---|---|---|---|---|
data | object | {"title":"Component","objects":[]} | The component document itself: a whole Model JSON. |
loadComponent - Load Component
A component the host fetches by id, only when a placement pulls it.
role step, type component, valid on components, returns component, default key component.
| Arg | Type | Default | Min | Max | Options | Description |
|---|---|---|---|---|---|---|
url | url | Absolute https URL of a model document; the host fetches it. |