Skip to main content
cngx-src documentation

CngxSliderTicksView

Interface

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

Import#

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

Description#

Tick view produced by createSliderTicks.

Index#

Instance Properties#

interval#Signal
Readonly

Tick spacing as a track percentage string (e.g. "5%"), or null when marks are off.

values#Signal
Readonly

Numeric tick stops for labels (empty when labels are off or the grid is too dense).

Methods#

fractionOf#number
fractionOf(value: number)

Track fraction [0, 1] of a tick value, for positioning its label.

@paramvaluenumber