Class: Plutonium::Definition::FormLayout::Section
- Inherits:
-
Struct
- Object
- Struct
- Plutonium::Definition::FormLayout::Section
- Defined in:
- lib/plutonium/definition/form_layout.rb
Overview
One declared section, or the implicit ‘ungrouped` bucket (empty `fields`).
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#key ⇒ Object
Returns the value of attribute key.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #collapsed? ⇒ Boolean
- #collapsible? ⇒ Boolean
- #columns ⇒ Object
- #condition ⇒ Object
- #description ⇒ Object
- #label ⇒ Object
- #ungrouped? ⇒ Boolean
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields
22 23 24 |
# File 'lib/plutonium/definition/form_layout.rb', line 22 def fields @fields end |
#key ⇒ Object
Returns the value of attribute key
22 23 24 |
# File 'lib/plutonium/definition/form_layout.rb', line 22 def key @key end |
#options ⇒ Object
Returns the value of attribute options
22 23 24 |
# File 'lib/plutonium/definition/form_layout.rb', line 22 def @options end |
Instance Method Details
#collapsed? ⇒ Boolean
27 |
# File 'lib/plutonium/definition/form_layout.rb', line 27 def collapsed? = !![:collapsed] |
#collapsible? ⇒ Boolean
26 |
# File 'lib/plutonium/definition/form_layout.rb', line 26 def collapsible? = !![:collapsible] |
#columns ⇒ Object
28 |
# File 'lib/plutonium/definition/form_layout.rb', line 28 def columns = [:columns] |
#condition ⇒ Object
29 |
# File 'lib/plutonium/definition/form_layout.rb', line 29 def condition = [:condition] |
#description ⇒ Object
25 |
# File 'lib/plutonium/definition/form_layout.rb', line 25 def description = [:description] |
#label ⇒ Object
24 |
# File 'lib/plutonium/definition/form_layout.rb', line 24 def label = [:label] || key.to_s.humanize |
#ungrouped? ⇒ Boolean
23 |
# File 'lib/plutonium/definition/form_layout.rb', line 23 def ungrouped? = key == UNGROUPED_KEY |