Sha256: ab7aba04136c2905e6bbfd9a4dce2e6b1696b9f08376fe1f31e2bbf3e86614ae

Contents?: true

Size: 480 Bytes

Versions: 7

Compression:

Stored size: 480 Bytes

Contents

require_relative 'datetime_base'

module Voom
  module Presenters
    module DSL
      module Components
        class TimeField < DatetimeBase
          attr_reader :config

          def initialize(**attribs_, &block)
            super(type: :time, **attribs_, &block)
            map_config(:min_time, :min_date)
            map_config(:max_time, :max_date)
            merge_config(:time_24hr, true)

            expand!
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
voom-presenters-0.1.13 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-0.1.12 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-0.1.11 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-0.1.10 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-0.1.9 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-0.1.8 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-0.1.7 lib/voom/presenters/dsl/components/time_field.rb