react-timepicker
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -7,3 +7,3 @@ { | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "React timepicker in Android KitKat style", | ||
@@ -10,0 +10,0 @@ |
@@ -70,3 +70,3 @@ [![npm](https://nodei.co/npm/react-timepicker.png?downloads=true)](https://www.npmjs.com/package/react-timepicker) | ||
Function formatting numbers **(default: left pad with 0)** | ||
Function `(number, 'info' | 'clock') => string` formatting numbers **(default: left pad with 0)** | ||
@@ -73,0 +73,0 @@ #### militaryTime |
@@ -43,3 +43,3 @@ 'use strict'; | ||
formatNumber: function (value) { | ||
formatNumber: function (value/*, mode */) { | ||
return value < 10 ? '0' + value : value; | ||
@@ -141,3 +141,3 @@ } | ||
}, | ||
formatNumber(hours) | ||
formatNumber(hours, 'info') | ||
), | ||
@@ -152,3 +152,3 @@ ':', | ||
}, | ||
formatNumber(minutes) | ||
formatNumber(minutes, 'info') | ||
) | ||
@@ -359,3 +359,3 @@ ); | ||
{ x: x, y: y }, | ||
formatNumber(hour) | ||
formatNumber(hour, 'clock') | ||
) | ||
@@ -404,3 +404,3 @@ )); | ||
{ x: x, y: y }, | ||
formatNumber(minute) | ||
formatNumber(minute, 'clock') | ||
) : React.createElement('circle', { cx: x, cy: y, r: 10 }) | ||
@@ -407,0 +407,0 @@ )); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39504