@empathyco/x-components
Version:
Empathy X Components
57 lines (27 loc) • 860 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [createTrackWire](./x-components.createtrackwire.md)
## createTrackWire() function
Factory helper to create a wire for the track of a taggable element.
**Signature:**
```typescript
export declare function createTrackWire(property: keyof Tagging): Wire<Taggable>;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
property
</td><td>
keyof Tagging
</td><td>
Key of the tagging object to track.
</td></tr>
</tbody></table>
**Returns:**
[Wire](./x-components.wire.md)<!-- --><Taggable>
A new wire for the given property of the taggable element.