Documentation
    Preparing search index...

    Interface NumberPropertyType

    Configuration dictionary for instantiating a NumberProperty. Enforces numeric bounds, types (integer vs float), signs, and UI formatting.

    Parameter Type Description Default
    minVal number The minimum allowed value (inclusive). undefined
    maxVal number The maximum allowed value (inclusive). undefined
    sign NumberSign Restricts the number to signed or unsigned (positive only). TYPE_SIGNED
    type NumberType The numeric type: integer (floored) or float. TYPE_INTEGER
    prefix string A string prepended to the formatted output (e.g., "$"). ""
    suffix string A string appended to the formatted output (e.g., "kg"). ""
    precision number Number of decimal places for floats. 0
    interface NumberPropertyType {
        defaultValue?: any;
        htmlType?: PropertyHTMLType;
        id?: string;
        mandatory?: boolean;
        maxVal?: number;
        minVal?: number;
        name: string;
        onChange?: (dao: DataObjectClass<any>) => DataObjectClass<any>;
        parent?: DataObjectClass<any>;
        precision?: number;
        prefix?: string;
        protected?: boolean;
        sign?: string;
        suffix?: string;
        type?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    defaultValue?: any
    htmlType?: PropertyHTMLType
    id?: string
    mandatory?: boolean
    maxVal?: number
    minVal?: number
    name: string
    onChange?: (dao: DataObjectClass<any>) => DataObjectClass<any>
    parent?: DataObjectClass<any>
    precision?: number
    prefix?: string
    protected?: boolean
    sign?: string
    suffix?: string
    type?: string