Bulk Create Upload
This section describes the BfmTransferBulkCreateUploadComponent component.
Usage
You need to import it in your module and use it in your template.
import { BfmTransferBulkCreateUploadComponent } from '@celerofinancas/ui-charges';
@Component({
standalone: true,
selector: 'bulk-create-upload',
imports: [BfmTransferBulkCreateUploadComponent],
templateUrl: './bulk-create-upload.component.html',
})
export class TransferBulkCreateUploadComponent {}
Then, in your template, you can use the component like this:
bulk-create-upload.component.html
<bfm-bulk-transfer-upload
[bulkStep]="bulkStep"
[companyPk]="companyPk"
[sendFileLabel]="sendFileLabel"
[showExampleFile]="showExampleFile"
[uploadLabel]="uploadLabel"
[validMimeTypes]="validMimeTypes"
(currentStep)="handleCurrentStep($event)"
/>
Inputs
The BfmTransferBulkCreateUploadComponent component has the following inputs:
bulkStep
Bulk step
| Type | Default |
|---|---|
number | 2 |
companyPk
Company PK
| Type | Default |
|---|---|
string | '' |
sendFileLabel
Send file label
| Type | Default |
|---|---|
string | 'Enviar arquivo' |
showExampleFile
Whether to show example file
| Type | Default |
|---|---|
boolean | true |
uploadLabel
Upload label
| Type | Default |
|---|---|
string | 'Arraste pra cá ou clique para escolher o seu arquivo!' |
validMimeTypes
Valid mime types
| Type | Default |
|---|---|
Array<string> | ['text/csv', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'] |
Events
The BfmTransferBulkCreateUploadComponent component has the following events:
currentStep
Current step update
| Type |
|---|
EventEmitter<number> |