Skip to main content

CoA By Parent Autocomplete

This section describes the CoaByParentAutocompleteComponent component.

Usage

You need to import it in your module and use it in your template.

coa-by-parent-autocomplete.component.ts

import { CoaByParentAutocompleteComponent } from '@celerofinancas/ui-company-kit';

@Component({
standalone: true,
selector: 'coa-by-parent-autocomplete',
imports: [CoaByParentAutocompleteComponent],
templateUrl: './coa-by-parent-autocomplete.component.html',
})
export class ByParentAutocompleteComponent {}

Then, in your template, you can use the component like this:

coa-by-parent-autocomplete.component.html

<bfm-by-parent-autocomplete
[amountValue]="amountValue"
[currentLevel]="'accounts'"
[disabled]="isDisabled"
[formControl]="formControl"
[parentPk]="'parentPrimaryKey'"
(selection)="handleSelection($event)"
(updateCoa)="handleUpdateCoa($event)"
/>

Inputs

The CoaByParentAutocompleteComponent component has the following inputs:

amountValue

Amount Value

TypeDefault
number0

currentLevel

Current Level

TypeDefault
string'accounts_categories'

disabled

User permission to disable the control

TypeDefault
booleanfalse

formControl

CVA form control

TypeDefault
FormControlnew FormControl('')

parentPk

Parent Primary Key

TypeDefault
string''

Events

The CoaByParentAutocompleteComponent component has the following events:

selection

Selection event emitted when a CoA is selected

TypeDescription
EventEmitternew EventEmitter

updateCoa

Update CoA event emitted when a CoA is updated

TypeDescription
EventEmitternew EventEmitter