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

replaceIdInParents

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

Presentation

function replaceIdInParents(
  childDefinition: ChildDefinition<SmartNgRXRowBase, SmartNgRXRowBase>,
  id: string,
  newId: string,
): 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

newId
string

the new id to replace the old id with