open-consul/ui-v2/app/components/consul-policy-list/README.mdx

25 lines
492 B
Plaintext
Raw Normal View History

## ConsulPolicyList
```
<ConsulPolicyList
@items={{items}}
@ondelete={{action 'delete'}}
/>
```
A presentational component for rendering Consul ACL policies
### Arguments
| Argument/Attribute | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `array` | | An array of ACL policies |
| `ondelete` | `function` | | An action to execute when the `Delete` action is clicked |
### See
- [Component Source Code](./index.js)
- [TemplateSource Code](./index.hbs)
---