Skip to main content

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

TypeDefault
booleanfalse

openedItemIndex

Currently expanded list item index

TypeDefault
number0

parentEconomicGroup

Economic group PK

TypeDefault
literal typenull

Events

The BfmCompaniesAttributionComponent component has the following Events:

itemClick

Emits clicked list item index

Type
EventEmitter