Skip to main content

Relationship

This section describes the BfmCompanyRelationshipComponent component.

Usage

You can import the BfmCompanyRelationshipComponent directly in your route configuration.

company-relationship.ts

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

But if you need more customization, you need to import it in your module and use it in your template.

company-relationship.component.ts
import { BfmCompanyRelationshipComponent } from '@celerofinancas/ui-company-kit';

@Component({
selector: 'company-related-relationship',
imports: [BfmCompanyRelationshipComponent],
templateUrl: './company-related-relationship.component.html',
standalone: true,
})
export class CompanyRelationshipComponent {}

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

company-relationship.component.html

<bfm-company-relationship
[relationType]="relation_type"
[companyRelatedPk]="companyRelatedPk"
(companyRelatedChanges)="companyRelated$.next($event)"
/>

Inputs

The BfmCompanyRelationshipComponent component has the following inputs:

relationType

Company relationship type.

TypeDefault
COMPANY_RELATIONSHIPCOMPANY_RELATIONSHIP.undefined

companyRelatedPk

Company related primary key.

TypeDefault
string''

loading

Loading state.

TypeDefault
booleanfalse

Events

The BfmCompanyRelationshipComponent component has the following events:

companyRelatedChanges

Emits the company related changes.

Type
Observable<CompanyRelated>