Skip to main content

Economic Groups Attribution Item

This section describes the BfmEconomicGroupsAttributionComponent component.

Usage

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

economic-groups-attribution.component.ts
import { BfmEconomicGroupsAttributionComponent } from '@celerofinancas/ui-user-kit';

@Component({
standalone: true,
selector: 'economic-groups-attribution',
imports: [BfmEconomicGroupsAttributionComponent],
templateUrl: './economic-groups-attribution.component.html',
})
export class EconomicGroupsAttributionComponent {}

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

economic-groups-attribution.component.html
<bfm-economic-groups-attribution 
[openedItemIndex]="openedItemIndex"
[selectedText]="selectedText"
[showSelectedText]="showSelectedText"
[title]="title"
(itemClick)="handleItemClick($event)"
/>

Inputs

The BfmEconomicGroupsAttributionComponent component has the following inputs:

openedItemIndex

Currently expanded list item index controller for parent component - Default to: null

TypeDefault
numbernull

selectedText

Selected text - Default to: 'Grupos Econômicos selecionados'

TypeDefault
string'Grupos Econômicos selecionados'

showSelectedText

Show selected text - Default to: 'Mostrar selecionados'

TypeDefault
string'Mostrar selecionados'

title

Title to be displayed on the top of the list - Default to: 'Selecione um grupo econômico'

TypeDefault
string'Selecione um grupo econômico'

Events

The BfmEconomicGroupsAttributionComponent component has the following events:

itemClick

Emits clicked list item index and item data

Type
EventEmitter