Module

EntityResolver

Resolves a farmOS entity given its type and ID. e.g. '1' or a UUID.

Usage

<entity-resolver entity-type="asset" :entity-ref="42" #default="{ entity }">
  <h1>Asset: {{ entity.attributes.name }}</h1>
</entity-resolver>

Props

Name Type Default value Required? Description
entityType String - Yes the entity type
entityRef Number|String - Yes the entity ID

Events

Name Payload Type Description
entity-resolved Entity Emit resolved entity