Constructor
new module:br-formatting /Leading Zero Formatter()
- Implements:
Methods
format(vValue, mAttributes)
Pads the integer part of a number with as many leading zeros needed to reach the specified size.
Attribute Options:
| Option | Description |
|---|---|
| size | the minimum size of the padded number (defaults to zero) |
Parameters:
| Name | Type | Description |
|---|---|---|
vValue |
Variant | the number (String or Number type). |
mAttributes |
Map | the map of attributes. |
- Implements:
Returns:
the number, padded to the required length with leading zeros.