Sha256: 3b2d61f38c2b0d36ec37b2ae8c5eac79f53ae0b00dbadc577e78cd64937705ba

Contents?: true

Size: 446 Bytes

Versions: 6

Compression:

Stored size: 446 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-2.1.0 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-2.0.3 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-2.0.2 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-2.0.1 lib/voom/presenters/dsl/components/time_field.rb
voom-presenters-2.0.0 lib/voom/presenters/dsl/components/time_field.rb