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
| Type | Default |
|---|---|
| number | 0 |
currentLevel
Current Level
| Type | Default |
|---|---|
| string | 'accounts_categories' |
disabled
User permission to disable the control
| Type | Default |
|---|---|
| boolean | false |
formControl
CVA form control
| Type | Default |
|---|---|
| FormControl | new FormControl('') |
parentPk
Parent Primary Key
| Type | Default |
|---|---|
| string | '' |
Events
The CoaByParentAutocompleteComponent component has the following events:
selection
Selection event emitted when a CoA is selected
| Type | Description |
|---|---|
| EventEmitter | new EventEmitter |
updateCoa
Update CoA event emitted when a CoA is updated
| Type | Description |
|---|---|
| EventEmitter | new EventEmitter |