Module: Voom::Presenters::DSL::Components::Mixins::TextFields
- Included in:
- Card, Content, Form, Grid::Column, UserInterface
- Defined in:
- lib/voom/presenters/dsl/components/mixins/text_fields.rb
Instance Method Summary collapse
- #hidden_field(**attribs, &block) ⇒ Object
- #number_field(**attribs, &block) ⇒ Object
- #rich_text_area(**attribs, &block) ⇒ Object
- #text_area(**attribs, &block) ⇒ Object
- #text_field(**attribs, &block) ⇒ Object
Instance Method Details
#hidden_field(**attribs, &block) ⇒ Object
17 18 19 20 |
# File 'lib/voom/presenters/dsl/components/mixins/text_fields.rb', line 17 def hidden_field(**attribs, &block) self << Components::HiddenField.new(parent: self, **attribs, &block) end |
#number_field(**attribs, &block) ⇒ Object
27 28 29 30 |
# File 'lib/voom/presenters/dsl/components/mixins/text_fields.rb', line 27 def number_field(**attribs, &block) self << Components::NumberField.new(parent: self, **attribs, &block) end |
#rich_text_area(**attribs, &block) ⇒ Object
22 23 24 25 |
# File 'lib/voom/presenters/dsl/components/mixins/text_fields.rb', line 22 def rich_text_area(**attribs, &block) self << Components::RichTextArea.new(parent: self, **attribs, &block) end |
#text_area(**attribs, &block) ⇒ Object
12 13 14 15 |
# File 'lib/voom/presenters/dsl/components/mixins/text_fields.rb', line 12 def text_area(**attribs, &block) self << Components::TextArea.new(parent: self, **attribs, &block) end |
#text_field(**attribs, &block) ⇒ Object
7 8 9 10 |
# File 'lib/voom/presenters/dsl/components/mixins/text_fields.rb', line 7 def text_field(**attribs, &block) self << Components::TextField.new(parent: self, **attribs, &block) end |