Class: Voom::Presenters::DSL::Components::Form
- Includes:
- Mixins::Append, Mixins::Attaches, Mixins::Buttons, Mixins::Content, Mixins::DateTimeFields, Mixins::ExpansionPanels, Mixins::FileInputs, Mixins::Grids, Mixins::Images, Mixins::Selects, Mixins::Tables, Mixins::TextFields, Mixins::Toggles, Mixins::Typography
- Defined in:
- lib/voom/presenters/dsl/components/form.rb
Instance Attribute Summary collapse
-
#components ⇒ Object
readonly
Returns the value of attribute components.
-
#shows_errors ⇒ Object
readonly
Returns the value of attribute shows_errors.
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) ⇒ Form
constructor
A new instance of Form.
Methods included from Mixins::Tables
Methods included from Mixins::Images
Methods included from Mixins::FileInputs
Methods included from Mixins::Typography
#blank, #body, #body2, #caption, #headline, #headline1, #headline2, #headline3, #headline4, #headline5, #headline6, #link, #overline, #page_title, #separator, #subtitle, #subtitle2, #text, #title
Methods included from Mixins::Append
Methods included from Mixins::Content
Methods included from Mixins::ExpansionPanels
Methods included from Mixins::Attaches
Methods included from Namespace
Methods included from Mixins::Buttons
Methods included from Mixins::Toggles
#checkbox, #icon_toggle, #radio_button, #switch
Methods included from Mixins::Selects
Methods included from Mixins::DateTimeFields
#date_field, #datetime_field, #time_field
Methods included from Mixins::TextFields
#hidden_field, #number_field, #rich_text_area, #text_area, #text_field
Methods included from Mixins::Grids
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) ⇒ Form
Returns a new instance of Form.
23 24 25 26 27 28 |
# File 'lib/voom/presenters/dsl/components/form.rb', line 23 def initialize(**attribs_, &block) super(type: :form, **attribs_, &block) @shows_errors = attribs.delete(:shows_errors){true} @components = [] end |
Instance Attribute Details
#components ⇒ Object (readonly)
Returns the value of attribute components.
21 22 23 |
# File 'lib/voom/presenters/dsl/components/form.rb', line 21 def components @components end |
#shows_errors ⇒ Object (readonly)
Returns the value of attribute shows_errors.
21 22 23 |
# File 'lib/voom/presenters/dsl/components/form.rb', line 21 def shows_errors @shows_errors end |