API REFERENCE

getTaskById

An asynchronous method. Check the argument and return types below.

Definition

typescript
getTaskById(id: string): Promise<GanttTask | null>
ArgumentsTypeRequired
idstringRequired

Return type: Promise<GanttTask | null>. Call the method after element registration and await its Promise result.