Class: Voom::Presenters::DSL::Components::Content
- Includes:
- Mixins::Attaches, Mixins::Common, Mixins::DateTimeFields, Mixins::Selects, Mixins::Snackbars, Mixins::TextFields
- Defined in:
- lib/voom/presenters/dsl/components/content.rb
Instance Attribute Summary collapse
-
#components ⇒ Object
readonly
Returns the value of attribute components.
-
#hidden ⇒ Object
readonly
Returns the value of attribute hidden.
-
#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, #context, #id, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ Content
constructor
A new instance of Content.
Methods included from Mixins::Snackbars
Methods included from Mixins::Selects
Methods included from Mixins::DateTimeFields
#date_field, #datetime_field, #time_field
Methods included from Mixins::TextFields
#hidden_field, #text_area, #text_field
Methods included from Mixins::Attaches
Methods included from Mixins::Common
#badge, #card, #form, #list, #table
Methods included from Mixins::Menus
Methods included from Mixins::Content
Methods included from Mixins::ExpansionPanels
Methods included from Mixins::Buttons
Methods included from Mixins::Grids
Methods included from Mixins::Typography
#body, #display, #headline, #subheading, #title
Methods included from Mixins::Append
Methods included from Mixins::Toggles
#checkbox, #icon_toggle, #radio_button, #switch
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) ⇒ Content
Returns a new instance of Content.
24 25 26 27 28 29 30 |
# File 'lib/voom/presenters/dsl/components/content.rb', line 24 def initialize(**attribs_, &block) super(type: :content, **attribs_, &block) @components = [] @hidden = attribs.delete(:hidden){false} @shows_errors = attribs.delete(:shows_errors){false} end |
Instance Attribute Details
#components ⇒ Object (readonly)
Returns the value of attribute components.
22 23 24 |
# File 'lib/voom/presenters/dsl/components/content.rb', line 22 def components @components end |
#hidden ⇒ Object (readonly)
Returns the value of attribute hidden.
22 23 24 |
# File 'lib/voom/presenters/dsl/components/content.rb', line 22 def hidden @hidden end |
#shows_errors ⇒ Object (readonly)
Returns the value of attribute shows_errors.
22 23 24 |
# File 'lib/voom/presenters/dsl/components/content.rb', line 22 def shows_errors @shows_errors end |