paprel-chart-of-accounts
Read-only chart of accounts — flat grid by default (account number, name, and type columns). Responsive layout hides the type column on narrow viewports. Internal account_code values are not shown.
Usage
HTML
<!-- Flat grid (default) -->
<paprel-chart-of-accounts></paprel-chart-of-accounts>
<!-- Nested tree -->
<paprel-chart-of-accounts tree></paprel-chart-of-accounts>
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
tree | boolean | false | Render nested hierarchy instead of the flat grid |
show-archived | boolean | false | Include archived accounts |
The legacy flat attribute is deprecated; flat list is now the default.
Events
| Event | Detail | Description |
|---|---|---|
paprel:resource-open | { version, source, resource, id } | Cancelable request for the host to open an account route |
account-select | { accountId, account } | Compatibility event when the host does not cancel paprel:resource-open |
Methods
| Method | Description |
|---|---|
refresh() | Reload account data from the API (async) |
Permissions
Requires accounting:account-list on the App Connect token.
Related
- Get started
- Account select — picker built on the same account catalog
- Patterns — theming