File

platform-components-ng/projects/platform-components-lib/src/lib/components/forms/service/linked-attributes.service.ts

Description

Linked attributes service

Index

Methods

Constructor

constructor()

Methods

getAttibutesDataSourceLevel
getAttibutesDataSourceLevel(contextId: string, attributeId: number)

Get DataSourceLevel.

Parameters :
Name Type Optional Description
contextId string No

Context Id

attributeId number No

Attribute Id

Returns : number

number

getAttibutesLinkedData
getAttibutesLinkedData(contextId: string, attributeId: number)

Lnked data associated with attribute.

Parameters :
Name Type Optional Description
contextId string No

context Id.

attributeId number No

attribute Id.

Returns : AttributeLinkData

AttributeLinkData.

getLinkedChildAttributes
getLinkedChildAttributes(contextId: string, attributeId: number)

Get linked child attributes.

Parameters :
Name Type Optional Description
contextId string No

Context Id

attributeId number No

Attribute Id

Returns : number[]

number[]

getLinkedParentAttributes
getLinkedParentAttributes(contextId: string, attributeId: number)

Get linked parent attributes.

Parameters :
Name Type Optional Description
contextId string No

Context Id

attributeId number No

Attribute Id

Returns : number[]

number[]

getParentData
getParentData(contextId: string, attributeId: number)

Get linked parent attributes selection.

Parameters :
Name Type Optional Description
contextId string No

Context Id

attributeId number No

Attribute Id

Returns : any

any

hasLinkedChildAttribs
hasLinkedChildAttribs(contextId: string, attributeId: number)

Check for linked child attributes.

Parameters :
Name Type Optional Description
contextId string No

Context Id

attributeId number No

Attribute Id

Returns : boolean

boolean

hasLinkedParentAttribs
hasLinkedParentAttribs(contextId: string, attributeId: number)

Check for linked parent attributes.

Parameters :
Name Type Optional Description
contextId string No

Context Id

attributeId number No

Attribute Id

Returns : boolean

boolean

registerAttribute
registerAttribute(contextId: string, attributeId: number, linkConfig: string, selectedValueIds: number[])

Register attribute with service.

Parameters :
Name Type Optional Description
contextId string No

Context Id

attributeId number No

Attribute Id

linkConfig string No

Linking configuration

selectedValueIds number[] No

Selected value Ids

Returns : boolean

boolean

unRegisterAttribute
unRegisterAttribute(contextId: string, attributeId: number)

Un-Register attribute from service.

Parameters :
Name Type Optional Description
contextId string No

Context Id

attributeId number No

Attribute Id

Returns : void

void

updateLinkedAttributes
updateLinkedAttributes(contextId: string, attributeId: number, selectedValueIds: number[])

Notify linked child attributes about selected values.

Parameters :
Name Type Optional Description
contextId string No

Context Id

attributeId number No

Attribute Id

selectedValueIds number[] No

Selected value Ids

Returns : void

void

result-matching ""

    No results matching ""