xplain.ux.utils.Tools
This class provides a set of different methods that you might want to use when working with XplainUX.
All methods are implemented as static. Thus, each method may be called by something like
xplain.ux.utils.Tools.foo().
convertNumFormatToCurrentLocale
- convertNumFormatToCurrentLocale(formatStr)
Converts a number format string from the internally used local (“ukus”) to the local used by the user.
- Parameters
formatStr (string) – The format string to convert
- Returns
{string} The converted format string
convertNumFormatToCurrentLocale
- convertNumFormatToCurrentLocale(formatStr)
Converts a number format string from the currently used locale to the internally used local (which is “ukus”).
- Parameters
formatStr (string) – The format string to convert
- Returns
{string} The converted format string
Methods
getCurrentLocale
- getCurrentLocale()
returns the current number format locale. Returns a string which is eiter
ukusoreurope.- Returns
{string} The locale
numFormatConverter
- numFormatConverter(formatStr, from, to)
converts a number format string from one locale to another
- Parameters
formatStr (string) – The format string to convert
from (string) – The from locale. Has to be
ukukoreuropeto (string) – The from locale. Has to be
ukukoreurope
- Returns
{string} The converted format string