List Header Component
The List Header component provides a header interface for managing bank account lists with integration capabilities for Belvo bank conciliation. This component handles account selection, filtering, and provides access to banking integration modals.
ListHeaderComponent
This section describes the ListHeaderComponent component.
Composition
The ListHeaderComponent is composed of the following components:
- BfmAccountTotalComponent - Displays account totals and summary information.
- BfmListAccountsComponent - Renders the list of bank accounts.
Usage
You need to import it in your module and use it in your template.
import { ListHeaderComponent } from '@celerofinancas/common-domain';
@Component({
selector: 'accounts-page',
standalone: true,
imports: [ListHeaderComponent],
templateUrl: './accounts.component.html',
})
export class AccountsComponent {}
Then, in your template, you can use the component like this:
<list-header
[filterBanks]="bankFilters"
[useCompanyService]="true"
[viewOnly]="false"
[disableSelection]="false"
[isScrolled]="scrolled"
[accountsLimit]="5"
(accountSelected)="onAccountSelected($event)"
/>
Inputs
The ListHeaderComponent component has the following inputs:
initialLoad
Controls whether the component should perform an initial data load when it is initialized.
| Type | Default |
|---|---|
boolean | false |
filterBanks
Only shows banks where bank_id matches given array
| Type | Default |
|---|---|
any[] | undefined |
useCompanyService
Whether will use company service to handle changes
| Type | Default |
|---|---|
boolean | true |
viewOnly
Whether to allow editing accounts data
| Type | Default |
|---|---|
boolean | false |
disableSelection
Whether the selection of checking accounts is disabled
| Type | Default |
|---|---|
boolean | false |
isScrolled
Indicates if the header is in scrolled state (applies CSS class)
| Type | Default |
|---|---|
boolean | false |
isShrink
Indicates if the header should be displayed in a shrunken (compact) state.
| Type | Default |
|---|---|
boolean | false |
accountsLimit
Number of accounts to display. Default show all
| Type | Default |
|---|---|
number | 0 |