Skip to main content

Upload Creation

This section describes the BfmUploadCreationComponent component.

Composition

The BfmUploadCreationComponent is composed of the following components:

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

TypeDefault
Filenull

financialRecordsErrorList

Financial records error list

TypeDefault
{}[]

financialRecordsList

Financial records list

TypeDefault
{}[]

infoText

Information text

TypeDefault
string'Itens com Erro não serão criados'

loading

Loading control

TypeDefault
booleanfalse

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>