Logs Modal
This section describes the LogsModalComponent component.
Usage
You must to import the LogsModalComponent 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.
logs-modal.component.ts
import { LogsModalComponent } from '@celerofinancas/ui-charges';
import { ModalService } from "@celerofinancas/ui-modals";
import { Component, inject } from '@angular/core';
@Component({
standalone: true,
selector: 'logs',
templateUrl: './logs-modal.component.html',
})
export class LogsComponent {
/**
* Modal service for handling modals
*/
private modalService = inject(ModalService);
/**
* Open the modal
*/
public openModal(): void {
this.modalService.open(LogsModalComponent, {
chargeType: 'bill',
documentPk: '12345',
});
};
}
Inputs
The LogsModalComponent component has the following inputs:
chargeType
The type of charge.
| Type | Default |
|---|---|
| CHARGE_LIST_TYPE | null |
documentPk
The document primary key.
| Type | Default |
|---|---|
| string | null |
Events
The LogsModalComponent component has no events.