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
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Attributes inherited from TextField
#full_width, #password, #required
Attributes inherited from Input
Attributes inherited from EventBase
Attributes included from Mixins::Event
Attributes inherited from Base
#attributes, #context, #id, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ DatetimeField
constructor
A new instance of DatetimeField.
Methods inherited from DatetimeBase
Methods inherited from TextField
#error, #hint, #icon, #label, #pattern, #readonly, #value
Methods included from Mixins::Tooltips
Methods included from Mixins::Event
Methods inherited from Base
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.
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) end |
Instance Attribute Details
#config ⇒ Object (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 |