Upload Creation
This section describes the BfmUploadCreationComponent component.
Composition
The BfmUploadCreationComponent is composed of the following components:
- BfmTableComponent - Table component for displaying financial records.
Usage
You need to import it in your module and use it in your template.
upload-creation.component.ts
import { BfmUploadCreationComponent } from '@celerofinancas/ui-cash-flow';
@Component({
standalone: true,
selector: 'upload-creation',
imports: [BfmUploadCreationComponent],
templateUrl: './upload-creation.component.html',
})
export class CustomUploadCreationComponent {}
Then, in your template, you can use the component like this:
upload-creation.component.html
<bfm-upload-creation
[file]="file"
[financialRecordsErrorList]="financialRecordsErrorList"
[financialRecordsList]="financialRecordsList"
[infoText]="'Itens com Erro não serão criados'"
[loading]="loading"
(clearFile)="handleClearFile($event)"
(submitList)="handleSubmitList($event)"
/>
Inputs
The BfmUploadCreationComponent component has the following inputs:
file
Uploaded file reference
| Type | Default |
|---|---|
File | null |
financialRecordsErrorList
Financial records error list
| Type | Default |
|---|---|
{} | [] |
financialRecordsList
Financial records list
| Type | Default |
|---|---|
{} | [] |
infoText
Information text
| Type | Default |
|---|---|
string | 'Itens com Erro não serão criados' |
loading
Loading control
| Type | Default |
|---|---|
boolean | false |
Events
The BfmUploadCreationComponent component has the following events:
clearFile
Emits event when the file is to be cleared
| Type |
|---|
EventEmitter<any> |
submitList
Emits event when the list is to be submitted
| Type |
|---|
EventEmitter<any> |