mirror of https://github.com/hashicorp/consul
28 lines
630 B
Markdown
28 lines
630 B
Markdown
## ConsulMetadataList
|
|
|
|
`<ConsulMetadataList @items={{meta}} />`
|
|
|
|
A presentational component for presenting Consul Metadata
|
|
|
|
### Arguments
|
|
|
|
| Argument/Attribute | Type | Default | Description |
|
|
| --- | --- | --- | --- |
|
|
| `items` | `array` | | An array of entries or `[key, value]` pairs as returned by `Object.entries()` |
|
|
|
|
### Example
|
|
|
|
The following example shows how to construct the required structure from the
|
|
Consul API using a `object-entries` helper.
|
|
|
|
```handlebars
|
|
<ConsulMetadataList @items={{object-entries item.Meta}} />
|
|
```
|
|
|
|
### See
|
|
|
|
- [Component Source Code](./index.js)
|
|
- [Template Source Code](./index.hbs)
|
|
|
|
---
|