Home
Using Smart NgRX
Demo Walkthrough
API
@smarttools/smart-ngrx / Function

removeIdFromParents

Helper method to remove the id of the row from the parent rows looking at it

Presentation

function removeIdFromParents(
  childDefinition: ChildDefinition<SmartNgRXRowBase, SmartNgRXRowBase>,
  id: string,
  parentInfo: ParentInfo[],
): void;

Returns

void

Parameters

NameTypeDescription
childDefinition
ChildDefinition<SmartNgRXRowBase, SmartNgRXRowBase>

the ChildDefinition that defines the parent/child relationship for the row being deleted

id
string

the id of the row being deleted

parentInfo
ParentInfo[]

holds the parent feature, entity, and ids that are affected by the delete