Skip to main content
cngx-src documentation

CngxChipStripRovingOptions

Interface

projects/common/interactive/reorder/chip-strip-roving.ts

Import#

import { CngxChipStripRovingOptions } from '@cngx/common/interactive'

Description#

Configuration for createChipStripRoving.

Index#

Instance Properties#

container#Signal
Readonly

Element hosting the chip wrappers. Read lazily at focusAt() time so the controller doesn't depend on view-init timing. null is a legitimate idle state - the controller becomes a no-op focuser.

count#Signal
Readonly

Reactive length of the chip list. When this count shrinks below activeIndex, the controller clamps the active index so focus never dangles at a removed position.

indexAttr#string
ReadonlyOptional

Attribute name used to identify each chip wrapper. Combined with the active index into a [attr="index"] query. Defaults to 'data-reorder-index' (matches CngxReorder's own item contract, so a single DOM hook covers both the reorder directive and this roving controller).