Formats a string based on the data to be displayed.
Example usage:
var files = 2185;
var model = { num: files };
print(Mojo.Format.formatChoice(files, "0#There are no files|1#There is one file|2<#There are #{num} files.", model);
Output:
There are 2185 files.
| Parameter | Type | Description |
|---|---|---|
| value | Object | Value used to select a choice from the choiceString. |
| choiceString | String | Concatenation of possible string choices. |
| model | Object | Object containing value. |







0 Comments