Skip to content

findRegion()

function findRegion(template, id):
| {
bodyIndex: number;
list: DataRegion[] | null;
parent: DataRegion | null;
region: DataRegion;
}
| undefined;

Finds a data region (at any depth) by id, with its parent region.

Parameter Type
template ReportTemplate
id string

| { bodyIndex: number; list: DataRegion[] | null; parent: DataRegion | null; region: DataRegion; } | undefined