Sha256: aa67c4cbae26e56b7c9f68b22016327be374a2a69466905b06278894808ccc81
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
module DatePicker module Styles class Pickadate def types [:date, :time] end def mapping() :pickadate end def template() %{ <%= input_html %> <script> (function($) { var type = '<%= type %>', plugin = 'picka' + type, options = $.extend(true, {}, <%= picker_options %>, { monthsFull: <%= month_names.to_json %>, monthsShort: <%= abbr_month_names.to_json %>, weekdaysFull: <%= day_names.to_json %>, weekdaysShort: <%= abbr_day_names.to_json %>, format: '<%= picker_format %>', formatSubmit: '<%= data_format %>', hiddenName: true, min: <%= min ? 'new Date("' + min.to_s + '")' : 'undefined' %>, max: <%= max ? 'new Date("' + max.to_s + '")' : 'undefined' %> }), $element = $('#<%= input_id %>'), picker = $element[plugin] && $element[plugin](options)[plugin]('picker'); })(jQuery); </script> } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
date_picker-0.0.9 | lib/date_picker/styles/pickadate.rb |