Module: Voom::Presenters::DSL::Components::Mixins::DateTimeFields

Included in:
Card, Content, Form, Grid::Column, UserInterface
Defined in:
lib/voom/presenters/dsl/components/mixins/date_time_fields.rb

Instance Method Summary collapse

Instance Method Details

#date_field(**attribs, &block) ⇒ Object



13
14
15
16
17
# File 'lib/voom/presenters/dsl/components/mixins/date_time_fields.rb', line 13

def date_field(**attribs, &block)
  self << Components::DateField.new(parent: self,
                                    context: context,
                                    **attribs, &block)
end

#datetime_field(**attribs, &block) ⇒ Object



7
8
9
10
11
# File 'lib/voom/presenters/dsl/components/mixins/date_time_fields.rb', line 7

def datetime_field(**attribs, &block)
  self << Components::DatetimeField.new(parent: self,
                                        context: context,
                                        **attribs, &block)
end

#time_field(**attribs, &block) ⇒ Object



19
20
21
22
23
# File 'lib/voom/presenters/dsl/components/mixins/date_time_fields.rb', line 19

def time_field(**attribs, &block)
  self << Components::TimeField.new(parent: self,
                                    context: context,
                                    **attribs, &block)
end