Class Index | File Index

Classes


Class ListFmt

Create a new list formatter object that formats lists of items according to the options.

The options object can contain zero or more of the following parameters:


Defined in: ListFmt.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
ListFmt(options)
Method Summary
Method Attributes Method Name and Description
 
format(items)
Format a list of strings as grammatical text that is appropriate for the locale of this formatter.
 
Return the locale of this formatter.
 
Return the style of names returned by this formatter
Class Detail
ListFmt(options)
Parameters:
{Object} options
properties that control how this formatter behaves
Method Detail
{string} format(items)
Format a list of strings as grammatical text that is appropriate for the locale of this formatter.
Parameters:
{Array.} items
an array of strings to format in order that you would like them to appear
Returns:
{string} a string containing the list of items that is grammatically correct for the locale of this formatter

{string} getLocale()
Return the locale of this formatter.
Returns:
{string} the locale of this formatter

{string} getStyle()
Return the style of names returned by this formatter
Returns:
{string} the style of names returned by this formatter

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Nov 15 2018 17:45:08 GMT-0800 (PST)