Class: Voom::Presenters::DSL::Components::DatetimeField
- Inherits:
-
DatetimeBase
- Object
- Base
- EventBase
- Input
- TextField
- DatetimeBase
- Voom::Presenters::DSL::Components::DatetimeField
- Defined in:
- lib/voom/presenters/dsl/components/datetime_field.rb
Constant Summary
Constants inherited from TextField
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Attributes inherited from DatetimeBase
Attributes inherited from TextField
#auto_complete, #behavior, #case_type, #full_width, #required
Attributes inherited from Input
Attributes inherited from EventBase
Attributes included from Mixins::Event
Attributes inherited from Base
#attributes, #css_class, #draggable, #drop_zone, #id, #tag, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ DatetimeField
constructor
A new instance of DatetimeField.
Methods inherited from DatetimeBase
Methods inherited from TextField
#hint, #icon, #label, #pattern, #value
Methods inherited from Input
Methods included from Mixins::Tooltips
Methods included from Mixins::Event
Methods inherited from Base
Methods included from Pluggable
#include_plugins, #plugin, #plugin_module
Methods included from Mixins::YieldTo
Methods included from Serializer
Methods included from Lockable
Constructor Details
#initialize(**attribs_, &block) ⇒ DatetimeField
Returns a new instance of DatetimeField.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/voom/presenters/dsl/components/datetime_field.rb', line 8 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) merge_config(:time_24hr, true) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/voom/presenters/dsl/components/datetime_field.rb', line 6 def config @config end |