Sha256: 4a94e874d40dc63695677915067d030fa2a367c76cfebde693f8bd8d15760831
Contents?: true
Size: 587 Bytes
Versions: 9
Compression:
Stored size: 587 Bytes
Contents
# frozen_string_literal: true module Archangel ## # Date picker custom input for SimpleForm # class DatePickerInput < SimpleForm::Inputs::Base ## # Build input field # # @param wrapper_options [Hash] the wrapper options # def input(wrapper_options = nil) merged_input_options = merge_wrapper_options(input_html_options, wrapper_options) @builder.text_field(attribute_name, merged_input_options) end ## # Add `datepicker` as an HTML class # def input_html_classes super.push("datepicker") end end end
Version data entries
9 entries across 9 versions & 1 rubygems