Sha256: 9e4f8e59690ce5c16945c9ac762ae39bdcd02e78ea58f41e4e51b00e0bf3c22a
Contents?: true
Size: 603 Bytes
Versions: 9
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true module Archangel ## # Datetime picker custom input for SimpleForm # class DateTimePickerInput < 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 `datetimepicker` as an HTML class # def input_html_classes super.push("datetimepicker") end end end
Version data entries
9 entries across 9 versions & 1 rubygems