Add datepicker component (#716)

This commit is contained in:
RainLoop Team 2016-06-24 00:57:35 +03:00
parent 8285bf02fe
commit 68890f8083
6 changed files with 39 additions and 0 deletions

15
dev/External/ko.js vendored
View file

@ -9,6 +9,7 @@
$ = require('$'),
JSON = require('JSON'),
Opentip = require('Opentip'),
Pikaday = require('pikaday'),
fDisposalTooltipHelper = function (oElement) {
ko.utils.domNodeDisposal.addDisposeCallback(oElement, function () {
@ -124,6 +125,20 @@
}
};
ko.bindingHandlers.pikaday = {
'init': function (oElement, fValueAccessor, fAllBindingsAccessor, oViewModel) {
ko.bindingHandlers.textInput.init.apply(oViewModel, Array.prototype.slice.call(arguments));
if (Pikaday)
{
oElement.__pikaday = new Pikaday({
field: oElement
});
}
}
};
ko.bindingHandlers.tooltip = {
'init': function (oElement, fValueAccessor) {