Skip to main content

Creation Modal

This section describes the BfmServicesCreationModalComponent component.

Usage

You must import the BfmServicesCreationModalComponent 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.

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

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

/**
* Open the modal
*/
public openModal(): void {
this.modalService.open(BfmServicesCreationModalComponent, {
isCreation: true,
service: null,
});
};
}

Inputs

The BfmServicesCreationModalComponent modalRef has the following inputs:

isCreation

Flag to indicate if the modal is for creation or edition.

TypeDefault
booleantrue

service

Service data.

TypeDefault
OfferedServicenull

Events

The BfmServicesCreationModalComponent modalRef has no Events.