consul/ui/packages/consul-peerings/app/components/consul/peer/selector
Ronald 9d21736e9f
Add UI copyright headers files (#16614)
* Add copyright headers to UI files

* Ensure copywrite file ignores external libs
2023-03-14 09:18:55 -04:00
..
README.mdx ui: Move peers to a subapplication (#13725) 2022-07-14 11:22:45 +01:00
index.hbs Add UI copyright headers files (#16614) 2023-03-14 09:18:55 -04:00

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)

---