Skip to main content

Digital Certificate - Form

This section describes the BfmFormComponent component.

Usage

You can import the BfmFormComponent directly in your route configuration.

import { BfmFormComponent } from '@celerofinancas/ui-charges';

const routes = [
{
path: 'digital-certificate-form',
component: BfmFormComponent,
},
];

But if you need more customization, you need to import it in your module and use it in your template.

digital-certificate-form.component.ts
import { BfmFormComponent } from '@celerofinancas/ui-charges';

@Component({
standalone: true,
selector: 'digital-certificate-form',
imports: [BfmFormComponent],
templateUrl: './digital-certificate-form.component.html',
})
export class DigitalCertificateFormComponent {}

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

digital-certificate-form.component.html
<bfm-form 
[certHaveBeenUploaded]="certHaveBeenUploaded"
[subtitle]="'O cadastro do certificado digital precisará ser feito apenas uma vez'"
[title]="'Envie o certificado digital para poder emitir notas de serviço pela plataforma.'"
/>

Inputs

The BfmFormComponent component has the following inputs:

certHaveBeenUploaded

Check if cert have been successfully uploaded.

TypeDefault
BehaviorSubject of booleannew BehaviorSubject(false)

subtitle

Subtitle of the banner component

TypeDefault
string'O cadastro do certificado digital precisará ser feito apenas uma vez'

title

Title of the banner component

TypeDefault
string'Envie o certificado digital para poder emitir notas de serviço pela plataforma.'

Events

The BfmFormComponent component has no events.