Skip to main content

Balance Warning Modal

This section describes the BfmFinancialRecordBalanceWarningModalComponent component.

Composition

The BfmFinancialRecordBalanceWarningModalComponent has no any composition components.

Usage

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

balance-warning-modal.component.ts
import { BfmFinancialRecordBalanceWarningModalComponent } from '@celerofinancas/ui-cash-flow';
import { ModalService } from "@celerofinancas/ui-modals";
import { Component, inject } from '@angular/core';

@Component({
standalone: true,
selector: 'balance-warning',
templateUrl: './balance-warning-modal.component.html',
styleUrls: ['./balance-warning-modal.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [BfmFinancialRecordBalanceWarningModalComponent],
})
export class FinancialRecordBalanceWarningComponent {
/**
* Modal service for handling modals
*/
private modalService = inject(ModalService);

/**
* Open the modal
*/
public openModal(): void {
this.modalService.open(BfmFinancialRecordBalanceWarningModalComponent, {});
};
}

Inputs

The BfmFinancialRecordBalanceWarningModalComponent modalRef has no inputs.

Events

The BfmFinancialRecordBalanceWarningModalComponent modalRef has no events.