API REFERENCE

addSection

Funnel / pyramid-only — add a section (stage). Returns its index.

Definition

typescript
addSection(section: FunnelSectionSpec | number, opts?: { insertAt?: number }): Promise<number>
ArgumentsTypeRequired
sectionFunnelSectionSpec | numberRequired
opts{ insertAt?: number }Optional

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