Skip to main content

Deny Authorization Modal

This section describes the BfmDenyAuthorizationModalComponent component.

Usage

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

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

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

/**
* Open the modal
*/
public openModal(): void {
this.modalService.open(BfmDenyAuthorizationModalComponent, {
financialRecords: [],
title: 'Title',
subtitle: 'Subtitle',
notAuthorizedTextButton: 'Not Authorized',
cancelTextButton: 'Cancel',
});
};
}

Inputs

The BfmDenyAuthorizationModalComponent modalRef has the following inputs:

financialRecords

Financial records

TypeDefault
FinancialRecord[][]

title

Title

Type
string

subtitle

Subtitle

Type
string

notAuthorizedTextButton

Not authorized text button

Type
string

cancelTextButton

Cancel text button

Type
string

Events

The BfmDenyAuthorizationModalComponent modalRef has no events.