Sha256: 9fdb2c4b858e057203b2cd2d1de52e2367a70108c6c5dd4c6c666936fbd454ae
Contents?: true
Size: 590 Bytes
Versions: 28
Compression:
Stored size: 590 Bytes
Contents
import Vue from 'vue'; import $ from 'jquery'; const opts = { date: { format: 'd mmmm yyyy', formatSubmit: 'yyyy-mm-dd', hiddenName: true }, time: { format: 'h:i A', formatSubmit: 'HH:i', formatLabel: 'h:i A <sm!all>HH:i</sm!all>', hiddenName: true } } export default Vue.directive('pickadate', { params: ['pickadate-kind'], bind: function() { switch(this.params.pickadateKind) { case 'date': $(this.el).pickadate(opts.date); break; case 'time': $(this.el).pickatime(opts.time); break; } } })
Version data entries
28 entries across 28 versions & 1 rubygems