Skip to main content
cngx-src documentation

CngxSliderCoreOptions

Interface

projects/common/interactive/slider/slider-core.ts

Import#

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

Description#

Inputs for createSliderCore. Every field is a Signal, so the derived values track their sources without any manual sync. value is the single writable source of truth - the only thing the keyboard and pointer handlers ever mutate. boundedMin / boundedMax default to min / max; a dual-thumb host narrows them to the sibling-thumb bound so the cross-clamp math lives here rather than in an effect.

Index#

Instance Properties#

boundedMax#Signal
ReadonlyOptional

Effective upper bound (sibling clamp for a range thumb). Defaults to max.

boundedMin#Signal
ReadonlyOptional

Effective lower bound (sibling clamp for a range thumb). Defaults to min.

max#Signal
Readonly

Track upper bound.

min#Signal
Readonly

Track lower bound. Also the snap-to-step origin.

step#Signal
Readonly

Step granularity. <= 0 disables snapping (continuous slider).

value#WritableSignal
Readonly

Writable source of truth. The only signal the core ever writes.

valueText#function
ReadonlyOptional

Maps the current value to an aria-valuetext string (currency, dates, t-shirt sizes). When omitted, aria-valuetext mirrors the numeric value.