Skip to main content

Focus Integration Modal

This section describes the BfmFocusIntegrationModalComponent component.

Usage

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

focus-integration-modal.component.ts
import { BfmFocusIntegrationModalComponent } from '@celerofinancas/ui-user-kit';
import { ModalService } from "@celerofinancas/ui-modals";
import { Component, inject } from '@angular/core';

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

/**
* Open the modal
*/
public openModal(): void {
this.modalService.open(BfmFocusIntegrationModalComponent, {
company: {
fantasy_name: 'company_name',
pk: '1',
},
keychain: {},
isUserStaff: false,
title: 'title',
submitText: 'submit_text',
downloadJsonText: 'download_json',
addNewFieldText: 'add_new_field',
});
};
}

Inputs

The BfmFocusIntegrationModalComponent modalRef has the following inputs:

[company]

Company Data Info

TypeDefault
Company{}

[keychain]

Modal KeyChain Info

TypeDefault
Keychain{}

[isUserStaff]

Boolean to indices if user is user staff

TypeDefault
booleanfalse

[title]

Modal title text

TypeDefault
stringnull

[submitText]

Modal submit text

TypeDefault
stringnull

[downloadJsonText]

Modal download Json text

TypeDefault
stringnull

[addNewFieldText]

Modal add new field text

TypeDefault
stringnull

Events

The BfmFocusIntegrationModalComponent modalRef has no events.