Statement
Lists account transactions by day.
kor/ui/StatementSource
When to use
- Use it for accounts, cards and petty cash.
Examples
Account
<k:Statement currency="TRY" balance="{/balance}" items="{path: '/rows', templateShareable: false}"><k:Transaction title="{t}" text="{x}" date="{d}" amount="{a}" category="{c}" state="{s}"/></k:Statement>
API
Properties
| Name | Type | Default | Description |
|---|
currency | string | | Currency |
label | string | | Accessible name |
balance | any | null | Current balance. When set, each day's closing balance is shown |
filter | string | all | all, in or out |
Aggregations
| Name | Type | Description |
|---|
items | Transaction[] | Transactions, newest first |
Events
| Name | Type | Description |
|---|
press | key: string | A transaction was pressed |
Transaction
An account transaction.
Properties
| Name | Type | Default | Description |
|---|
key | string | | Key |
title | string | | Counterparty |
text | string | | Description |
date | any | | Day |
amount | any | 0 | Amount. Outgoing is negative |
category | string | | market, fuel, food, travel, salary, transfer, bill, phone, health, education, rent, cash, saving, fee or store |
icon | string | | Replaces the category icon |
person | string | | Person. Shows an avatar instead of the icon |
state | string | | Status. danger means cancelled and is left out of totals |
statusText | string | | Status text |
Related
BankCardDataGrid