Companies Attribution Item
This section describes the BfmCompaniesAttributionComponent component.
Usage
You need to import it in your module and use it in your template.
companies-attribution.component.ts
import { BfmCompaniesAttributionComponent } from '@celerofinancas/ui-user-kit';
@Component({
standalone: true,
selector: 'companies-attribution',
imports: [BfmCompaniesAttributionComponent],
templateUrl: './companies-attribution.component.html',
})
export class CompaniesAttributionComponent {}
Then, in your template, you can use the component like this:
companies-attribution.component.html
<bfm-companies-attribution
[isParentSelected]="isParentSelected"
[openedItemIndex]="openedItemIndex"
[parentEconomicGroup]="parentEconomicGroup"
(itemClick)="handleItemClick($event)"
/>
Inputs
The BfmCompaniesAttributionComponent component has the following inputs:
isParentSelected
Whether the economic group that contains this company is selected
| Type | Default |
|---|---|
| boolean | false |
openedItemIndex
Currently expanded list item index
| Type | Default |
|---|---|
| number | 0 |
parentEconomicGroup
Economic group PK
| Type | Default |
|---|---|
| literal type | null |
Events
The BfmCompaniesAttributionComponent component has the following Events:
itemClick
Emits clicked list item index
| Type |
|---|
| EventEmitter |