Skip to main content

Amounts/Transactions table

Component: <pcp-credit-card-amounts-table>

Preview:

Preview

Description

This component displays a table with transactions information.


Usage

import { PcpAmountsTableComponent } from '@celerofinancas/pcp-client-ui';
<pcp-credit-card-amounts-table 
[count]="count"
[dataSource]="transactions"
[loading]="isLoading"
[page]="currentPage"
[totalPage]="totalPages"
(getNext)="onGetNext()"
(selectedRowsValue)="onSelectedRowsValue($event)"
(sort)="onSort($event)"
/>

Component Inputs and Outputs

Inputs

NameTypeDefaultDescriptionRequired
totalPagenumber0The total number of pages availableNO
dataSourceTransaction[][]The transactions data to be displayed in tableYES
loadingbooleanfalseThe loading state controllerNO
countnumber0The total number of transactions availableNO
pagenumber1The current page number being displayedNO

Outputs

NameTypeDescription
sortEventEmitter<string>Emits the current clicked column when sort icon is clicked
selectedRowsValueEventEmitter<number>Emits the sum of the values of the currently selected rows
getNextEventEmitter<void>Emits an event to load the next page of transactions when the user scrolls to the bottom of the table

Dependencies

  • @celerofinancas/ui-common
  • @celerofinancas/ui-directives
  • @celerofinancas/ui-loaders
  • @celerofinancas/ui-pipes
  • @celerofinancas/class-utils

Notes