formcycle 8.4.0 - JavaScript for forms
    Preparing search index...

    Interface NumberFormatApiPorcelain

    The API for the porcelain layer of NumberFormat elements, such as accessing the underlying library.

    Note that this API is fragile and may change at any time without notice.

    The API is available via $.xutil.numberFormat.porcelain.

    interface NumberFormatApiPorcelain {
        getAutoNumericConstructor: () => typeof AutoNumeric;
        getAutoNumericInstance: (reference: any) => AutoNumeric;
    }
    Index

    Properties

    getAutoNumericConstructor: () => typeof AutoNumeric

    Gets the constructor from the AutoNumeric library, for creating AutoNumeric instances.

    This is part of the porcelain API, and is not guaranteed to be stable. The underlying library may change at any time without notice.

    Type declaration

      • (): typeof AutoNumeric
      • Returns typeof AutoNumeric

        The AutoNumeric constructor from the AutoNumeric library.

    getAutoNumericInstance: (reference: any) => AutoNumeric

    Gets the AutoNumeric instance for the first of the given elements.

    This is part of the porcelain API, and is not guaranteed to be stable. The underlying library may change at any time without notice.

    Type declaration

      • (reference: any): AutoNumeric
      • Parameters

        • reference: any

          The element to get the AutoNumeric instance for.

        Returns AutoNumeric

        The AutoNumeric instance for the given element.

    If the element does not have an AutoNumeric instance.