Skip to main content

Edit Emails Modal

This section describes the BfmEditEmailsModalComponent component.

Usage​

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

edit-emails-modal.component.ts
import { BfmEditEmailsModalComponent } from '@celerofinancas/ui-charges';
import { ModalService } from '@celerofinancas/ui-modals';
import { Component, inject } from '@angular/core';

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

/**
* Open the modal
*/
public openModal(): void {
this.modalService.open(BfmEditEmailsModalComponent, {
contacts: [],
financialRecordGroupPk: 'string',
title: 'Title',
imgSrc: 'Image source',
submitText: 'Submit',
cancelText: 'Cancel',
});
};
}

Inputs​

The BfmEditEmailsModalComponent modalRef has the following inputs:

contacts​

Contacts list

TypeDefault
Contacts[][]

financialRecordGroupPk​

Financial record group primary key

Type
string

title​

Modal title

TypeDefault
string'Editar e-mails'

imgSrc​

Image source

tip

Every assets URL in BFM Interfaces should follows the cdsSource pattern. To better understand how to use it, please refer to the Assets documentation.

TypeDefault
string'assets/charges/envelope.svg'

submitText​

Submit button text

TypeDefault
string'Salvar edição dos e-mails'

cancelText​

Cancel button text

TypeDefault
string'Cancelar'

Events​

The BfmEditEmailsModalComponent modalRef has no events.