Skip to main content

Upload Section

This section describes the BfmUploadSectionComponent component.

Usage

You need to import it in your module and use it in your template.

upload-section.component.ts

import { BfmUploadSectionComponent } from '@celerofinancas/ui-company-kit';

@Component({
standalone: true,
selector: 'upload-section',
imports: [BfmUploadSectionComponent],
templateUrl: './upload-section.component.html',
})
export class UploadSectionComponent {}

Then, in your template, you can use the component like this:

upload-section.component.html

<bfm-upload-section
[companyPk]="'companyPrimaryKey'"
[loading]="isLoading"
(changeStep)="handleChangeStep($event)"
(fileUploaded)="handleFileUploaded($event)"
/>

Inputs

The BfmUploadSectionComponent component has the following inputs:

companyPk

Company primary key.

TypeDefault
string''

loading

Loading state.

TypeDefault
booleanfalse

Events

The BfmUploadSectionComponent component has the following events:

changeStep

Event emitted when the step is changed.

TypeDefault
EventEmitternew EventEmitter()

fileUploaded

Event emitted when the file is uploaded.

TypeDefault
EventEmitternew EventEmitter()