Class: Voom::Presenters::DSL::Components::DatetimeField

Inherits:
DatetimeBase show all
Defined in:
lib/voom/presenters/dsl/components/datetime_field.rb

Instance Attribute Summary collapse

Attributes inherited from TextField

#full_width, #password, #required

Attributes inherited from Input

#name

Attributes inherited from EventBase

#event_parent_id

Attributes included from Mixins::Event

#events

Attributes inherited from Base

#attributes, #context, #id, #type

Instance Method Summary collapse

Methods inherited from DatetimeBase

#clear_icon

Methods inherited from TextField

#error, #hint, #icon, #label, #pattern, #readonly, #value

Methods included from Mixins::Tooltips

#tooltip

Methods included from Mixins::Event

#event

Methods inherited from Base

#expand!

Methods included from Mixins::YieldTo

#yield_to

Methods included from Serializer

#to_hash

Methods included from Lockable

#lock!, #locked?

Constructor Details

#initialize(**attribs_, &block) ⇒ DatetimeField

Returns a new instance of DatetimeField.



10
11
12
13
14
15
16
17
# File 'lib/voom/presenters/dsl/components/datetime_field.rb', line 10

def initialize(**attribs_, &block)
  super(type: :datetime, **attribs_, &block)
  merge_config(:min_date)
  merge_config(:max_date)
  merge_config(:min_time)
  merge_config(:max_time)
  expand!
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



8
9
10
# File 'lib/voom/presenters/dsl/components/datetime_field.rb', line 8

def config
  @config
end