[]
Spread.Formatter.GeneralFormatter
• new GeneralFormatter(format?
, cultureName?
)
Represents a formatter with the specified format mode and format string.
Name | Type |
---|---|
format? |
string |
cultureName? |
string |
▸ format(obj
, formattedData?
): string
Formats the specified object as a string with a formatted data Object.
Name | Type | Description |
---|---|---|
obj |
Object |
The object with cell data to format. |
formattedData? |
Object |
- |
string
The formatted string.
▸ formatString(value?
): string
| GeneralFormatter
Gets or sets the format string for this formatter.
Name | Type | Description |
---|---|---|
value? |
string |
The format string for this formatter. |
string
| GeneralFormatter
If no value is set, returns the formatter string for this formatter; otherwise, returns the formatter.
▸ parse(str
): Object
Parses the specified text.
Name | Type |
---|---|
str |
string |
Object
The parsed object.