dojox/dtl/filter/misc (version 1.10)

Property Summary

Method Summary

  • filesizeformat(value) Format the value like a 'human-readable' file size (i.e. 13 KB, 4.1 MB, 102bytes, etc).
  • phone2numeric(value) Takes a phone number and converts it in to its numerical equivalent
  • pluralize(value,arg) Returns a plural suffix if the value is not 1, for '1 vote' vs. '2 votes'
  • pprint(value) A wrapper around toJson unless something better comes along

Properties

_phone2numeric
Defined by: dojox/dtl/filter/misc

Methods

filesizeformat(value)

Format the value like a 'human-readable' file size (i.e. 13 KB, 4.1 MB, 102bytes, etc).

Parameter Type Description
value undefined
Returns:string
phone2numeric(value)

Takes a phone number and converts it in to its numerical equivalent

Parameter Type Description
value undefined
Returns:string
pluralize(value,arg)

Returns a plural suffix if the value is not 1, for '1 vote' vs. '2 votes'

By default, 's' is used as a suffix; if an argument is provided, that string is used instead. If the provided argument contains a comma, the text before the comma is used for the singular case.

Parameter Type Description
value undefined
arg undefined
Returns:string | undefined
pprint(value)

A wrapper around toJson unless something better comes along

Parameter Type Description
value undefined
Returns:undefined
Error in the documentation? Can’t find what you are looking for? Let us know!