You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui/packages/consul-peerings/app/components/consul/peer/selector
John Cowen f6edc37d0c
ui: Move peers to a subapplication (#13725)
2 years ago
..
README.mdx
index.hbs

README.mdx

# Consul::Peer::Selector

A conditional, autoloading, menu component specifically for navigating to peers.

Please note:

- Currently at least, you must add this inside of a `<ul>` element.
- For the moment, make sure you have enabled peers using developer debug
  cookies.

```hbs preview-template
<ul>
  <Consul::Peer::Selector
    @dc={{hash
      Name='dc-1'
    }}
    @nspace='default'
    @partition='default'
  />
</ul>
```


## Arguments

| Argument/Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| `dc` | `object` |  | The current datacenter |
| `nspace` | `string` |  | The name of the current namespace |
| `partition` | `string` |  | The name of the current partition |

## See

- [Template Source Code](./index.hbs)

---