Skip to main content

Status Description Modal

This section describes the BfmChargeStatusDescriptionModalComponent component.

Usage​

You must to import the BfmChargeStatusDescriptionModalComponent and provide it to ModalService to open the modal.

info

Modals are not components. They must be used with the ModalService to be opened.

To a better understanding, check the Modals documentation.

charge-actions-modal.component.ts
import { BfmChargeStatusDescriptionModalComponent } from '@celerofinancas/ui-charges';
import { ModalService } from "@celerofinancas/ui-modals";
import { Component, inject } from '@angular/core';

@Component({
standalone: true,
selector: 'status-description',
templateUrl: './status-description.component.html',
})
export class StatusDescriptionModalComponent {
/**
* Modal service for handling modals
*/
private modalService = inject(ModalService);

/**
* Open the modal
*/
public openModal(): void {
this.modalService.open(BfmChargeStatusDescriptionModalComponent, {
charge: charge,
onError: () => {
console.log('Error');
},
});
};
}

Inputs​

The BfmChargeStatusDescriptionModalComponent modalRef has no inputs.

Events​

The BfmChargeStatusDescriptionModalComponent modalRef has no events.