Skip to content
Snippets Groups Projects
Commit 2009a1af authored by Anton Guz's avatar Anton Guz
Browse files

Merge branch 'MAGETWO-31689' into MAGETWO-31191

parents 3c4449de 42ab5e4c
Branches
No related merge requests found
......@@ -132,6 +132,7 @@
<arguments>
<argument name="js_config" xsi:type="array">
<item name="extends" xsi:type="string">input</item>
<item name="component" xsi:type="string">Magento_Ui/js/form/element/date</item>
<item name="config" xsi:type="array">
<item name="input_type" xsi:type="string">date</item>
</item>
......
/**
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
*/
define([
'moment',
'./abstract'
], function (moment, Abstract) {
'use strict';
return Abstract.extend({
defaults: {
dateFormat: 'MM/DD/YYYY'
},
/**
* Converts initial value to the specified date format.
*
* @returns {String}
*/
getInititalValue: function () {
var value = this._super();
if (value) {
value = moment(value).format(this.dateFormat);
}
return value;
}
});
});
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment