Class: IRuby::Input::Date
Instance Method Summary
collapse
Methods inherited from Field
#widget_html
Methods inherited from Label
#widget_label
Methods inherited from Widget
builder, #content, #widget_display, #widget_html, #widget_join
Instance Method Details
21
22
23
|
# File 'lib/iruby/input/date.rb', line 21
def widget_css
'#ui-datepicker-div { z-index: 2000 !important; }'
end
|
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/iruby/input/date.rb', line 25
def widget_js
<<-JS
$('.iruby-date').datepicker({
dateFormat: 'mm/dd/yy',
onClose: function(date) {
$(this).data('iruby-value', date);
}
});
JS
end
|