ReadonlydestroyDestroys the existing NumberFormat instance for all given elements.
The element to destroy the instance for.
ReadonlyhasChecks if the first of the given elements has an NumberFormat instance.
The element to check.
True if the element has an NumberFormat instance, false otherwise.
ReadonlyinitializeInitializes the AutoNumeric feature for the given element. Does nothing when the element was already initialized. Use initializeAll to initialize multiple elements at once.
The element to initialize the feature for.
Optionaloptions: Partial<NumberFormatOptions>The options to use for the feature.
The ID of the newly created AutoNumeric instance. The empty string if no element was given, or if a selector was given that matches no elements.
ReadonlyinitializeInitializes the AutoNumeric feature for the given elements. If any element is already initialized, it is skipped. Use initialize to initialize a single element.
The elements to initialize the feature for. Can be either a single element, a collection of elements, a JQuery wrapper of elements, or a CSS selector.
Optionaloptions: Partial<NumberFormatOptions>The options to use for the feature.
The IDs of all AutoNumeric instance. Includes both newly created instances and instances that were already present. The array is empty if no elements were given, or if a selector was given that matches no elements.
The API for the lifecycle of NumberFormat elements, such as initialization and destruction.
The API is available via
$.xutil.numberFormat.lifecycle.