CDoubleValidator
Validates floating-point text within a configurable range.
import { CDoubleValidator } from "canvas-toolkit-lib";Declared members
constructor(bottom?: number, top?: number, decimals?: number);Creates a floating-point validator.
bottom(): number;Returns the lower bound.
top(): number;Returns the upper bound.
decimals(): number;Returns the maximum number of fractional digits.
setBottom(bottom: number): void;Sets the lower bound.
setTop(top: number): void;Sets the upper bound.
setRange(bottom: number, top: number): void;Sets the accepted range.
setDecimals(decimals: number): void;Sets the maximum number of fractional digits.
validate(input: string): CValidatorState;Validates floating-point text.