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



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

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

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



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

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

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



17
18
19
20
# File 'lib/voom/presenters/dsl/components/mixins/date_time_fields.rb', line 17

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