Namespace: util maps.nyc.gov

nyc.util

Source:

Methods

(static) formatNumberHtml(options) → {JQuery}

Format numeric HTML content to locale specific number format
Parameters:
Name Type Description
options nyc.util.FormatNumberHtmlOptions The options for formatting numbers
Source:
Returns:
The elements that have been formatted
Type
JQuery

(static) isIe() → {boolean}

Check if browser is IE
Source:
Returns:
Type
boolean

(static) isIos() → {boolean}

Check if OS is iOS
Source:
Returns:
Type
boolean

(static) preventDblEventHandler(event, handler, scopeopt)

A click event handler for HTML elements that will not fire twice on certain mobile devices
Parameters:
Name Type Attributes Description
event Object The event object
handler function The event handler function
scope Object <optional>
The scope in which to invoke the event handler
Source:

Type Definitions

FormatNumberHtmlOptions

Object type to hold arguments for nyc.util.formatNumberHtml
Type:
  • Object
Properties:
Name Type Attributes Description
elements JQuery | string The HTML elements to format
lang string <optional>
The language code for formatting
options Object <optional>
The options for Number#toLocaleString {@see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString}
Source: