mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Add datepicker component (#716)
This commit is contained in:
parent
8285bf02fe
commit
68890f8083
6 changed files with 39 additions and 0 deletions
15
dev/External/ko.js
vendored
15
dev/External/ko.js
vendored
|
|
@ -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) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue