API REFERENCE

updateNeedle

Gauge-only — patch a needle.

Definition

typescript
updateNeedle(idOrIndex: string | number, patch: Partial<GaugeNeedleSpec>): Promise<boolean>
ArgumentsTypeRequired
idOrIndexstring | numberRequired
patchPartial<GaugeNeedleSpec>Required

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