Sha256: 0ba4762935ee53deddcbbbc9e9820eb0a31e0aa81a88c812e97f5287cf599b0d
Contents?: true
Size: 366 Bytes
Versions: 4
Compression:
Stored size: 366 Bytes
Contents
module Trestle::Form::Fields::DatePicker def normalize_options! options[:prepend] ||= options.delete(:icon) { default_icon } unless options[:disabled] || options[:readonly] options.reverse_merge!(data: { picker: options.delete(:picker) { true }, allow_clear: true }) end super end def default_icon icon("fa fa-calendar") end end
Version data entries
4 entries across 4 versions & 1 rubygems