setNumChildren Method

Sets number of how many child nodes the parent will have. If parent already has some nodes they are removed.

setNumChildren(parentId: string | undefined, numChildren: number): void

Parameter Type Description
parentId string | undefined  
numChildren number  

Returns - void

Defined in

Last Updated: 13 June, 2024