Skip to main content
cngx-src documentation

CngxDomAnchorRetryOptions

Interface

projects/common/tabs/overflow/dom-anchor-retry.ts

Import#

import { CngxDomAnchorRetryOptions } from '@cngx/common/tabs'

Description#

Configuration for createDomAnchorRetry.

Index#

Instance Properties#

attempt#function
Readonly

Per-attempt callback. true halts; false/null schedules another attempt.

maxAttempts#number
Readonly

Cap on unsuccessful attempts before onGiveUp fires. The first synchronous call counts as attempt #1 - 5 permits four scheduled retries after the initial.

onGiveUp#function
ReadonlyOptional

Fires once after the maxAttempts-th unsuccessful attempt.

schedule#function
Readonly

Schedules the next attempt (rAF / afterNextRender / setTimeout / queueMicrotask). Returns a cancellation closure - return a noop when the scheduler doesn't expose one.