Class: Voom::Presenters::DSL::Components::Grid::Column
- Includes:
- Mixins::Attaches, Mixins::Chips, Mixins::Common, Mixins::Dialogs, Mixins::Icons, Mixins::Images, Mixins::Selects, Mixins::Snackbars, Mixins::TextFields, Mixins::Toggles
- Defined in:
- lib/voom/presenters/dsl/components/grid.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#components ⇒ Object
readonly
Returns the value of attribute components.
-
#desktop ⇒ Object
readonly
Returns the value of attribute desktop.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#tablet ⇒ Object
readonly
Returns the value of attribute tablet.
Attributes inherited from EventBase
Attributes included from Mixins::Event
Attributes inherited from Base
#attributes, #context, #id, #type
Instance Method Summary collapse
-
#initialize(**attribs_, &block) ⇒ Column
constructor
A new instance of Column.
Methods included from Mixins::Snackbars
Methods included from Mixins::Toggles
#checkbox, #icon_toggle, #radio_button, #switch
Methods included from Mixins::Append
Methods included from Mixins::Selects
Methods included from Mixins::TextFields
#datetime_field, #hidden_field, #text_area, #text_field
Methods included from Mixins::Chips
Methods included from Mixins::Dialogs
Methods included from Mixins::Attaches
Methods included from Mixins::Icons
Methods included from Mixins::Images
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::Event
Methods inherited from Base
Methods included from Serializer
Methods included from Lockable
Constructor Details
#initialize(**attribs_, &block) ⇒ Column
Returns a new instance of Column.
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/voom/presenters/dsl/components/grid.rb', line 49 def initialize(**attribs_, &block) super(type: :column, **attribs_, &block) @size = attribs.delete(:size) || 1 @desktop = attribs.delete(:desktop) @tablet = attribs.delete(:tablet) @phone = attribs.delete(:phone) @color = attribs.delete(:color) @components = [] end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
47 48 49 |
# File 'lib/voom/presenters/dsl/components/grid.rb', line 47 def color @color end |
#components ⇒ Object (readonly)
Returns the value of attribute components.
47 48 49 |
# File 'lib/voom/presenters/dsl/components/grid.rb', line 47 def components @components end |
#desktop ⇒ Object (readonly)
Returns the value of attribute desktop.
47 48 49 |
# File 'lib/voom/presenters/dsl/components/grid.rb', line 47 def desktop @desktop end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
47 48 49 |
# File 'lib/voom/presenters/dsl/components/grid.rb', line 47 def phone @phone end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
47 48 49 |
# File 'lib/voom/presenters/dsl/components/grid.rb', line 47 def size @size end |
#tablet ⇒ Object (readonly)
Returns the value of attribute tablet.
47 48 49 |
# File 'lib/voom/presenters/dsl/components/grid.rb', line 47 def tablet @tablet end |