Amounts Upload
This section describes the BfmAmountsUploadComponent component.
Composition
The BfmAmountsUploadComponent has no any composition component.
Usage
You can import the BfmAmountsUploadComponent directly in your route configuration.
bfm-amounts-upload.component.html
import { BfmAmountsUploadComponent } from "@celerofinancas/ui-cash-flow";
@Component({
standalone: true,
selector: 'amounts-upload',
imports: [BfmAmountsUploadComponent],
templateUrl: './bfm-amounts-upload.component.html',
})
export class AmountsUploadComponent {}
Then, in your template, you can use the component like this:
bfm-amounts-upload.component.html
<bfm-amounts-upload
[addEntriesButtonDescription]="'Adicionar lançamentos por CSV'"
[cancelSendButtonDescription]="'Cancelar envio do CSV'"
[companyPk]="'company-primary-key'"
[disabled]="false"
[downloadFileButtonDescription]="'Baixe o modelo CSV'"
[financialRecordPk]="'financial-record-primary-key'"
(amountsCreated)="handleAmountsCreated($event)"
(patchAmounts)="handlePatchAmounts($event)"
/>
Inputs
The BfmAmountsUploadComponent component has the following inputs:
addEntriesButtonDescription
Add entries button description.
| Type | Default |
|---|---|
string | 'Adicionar lançamentos por CSV' |
cancelSendButtonDescription
Cancel send button description.
| Type | Default |
|---|---|
string | 'Cancelar envio do CSV' |
companyPk
Company PK to which the amounts will be created.
| Type | Default |
|---|---|
string | undefined |
disabled
Disabled state control for the component.
| Type | Default |
|---|---|
boolean | false |
downloadFileButtonDescription
Download file button description.
| Type | Default |
|---|---|
string | 'Baixe o modelo CSV' |
financialRecordPk
Financial record PK to which the amounts will be created.
| Type | Default |
|---|---|
string | undefined |