CngxChipStripRovingOptions
projects/common/interactive/reorder/chip-strip-roving.ts
Import#
import { CngxChipStripRovingOptions } from '@cngx/common/interactive'
Description#
Configuration for createChipStripRoving.
Index#
Instance Properties#
SignalElement 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.
SignalReactive 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.
Document writing direction. Omit to read the ambient
injectDirection signal (the common case); pass an explicit
signal to force a direction for this strip. Mirrors the direction
option the tab / stepper / slider keyboard factories take, so under
rtl plain ArrowLeft roves forward and ArrowRight back on the inline axis.
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).