Class: Maglove::Widgets::Columns
- Defined in:
- lib/maglove/widgets/columns.rb
Instance Attribute Summary collapse
-
#column_count ⇒ Object
readonly
Returns the value of attribute column_count.
-
#columns ⇒ Object
readonly
Returns the value of attribute columns.
-
#total_columns ⇒ Object
readonly
Returns the value of attribute total_columns.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Maglove::Widgets::Base
Instance Attribute Details
#column_count ⇒ Object (readonly)
Returns the value of attribute column_count.
5 6 7 |
# File 'lib/maglove/widgets/columns.rb', line 5 def column_count @column_count end |
#columns ⇒ Object (readonly)
Returns the value of attribute columns.
4 5 6 |
# File 'lib/maglove/widgets/columns.rb', line 4 def columns @columns end |
#total_columns ⇒ Object (readonly)
Returns the value of attribute total_columns.
6 7 8 |
# File 'lib/maglove/widgets/columns.rb', line 6 def total_columns @total_columns end |
Instance Method Details
#defaults ⇒ Object
12 13 14 15 16 17 |
# File 'lib/maglove/widgets/columns.rb', line 12 def defaults { layout: "6x6", collapse_options: "sm" } end |
#identifier ⇒ Object
8 9 10 |
# File 'lib/maglove/widgets/columns.rb', line 8 def identifier "columns" end |
#template(&block) ⇒ Object
19 20 21 |
# File 'lib/maglove/widgets/columns.rb', line 19 def template(&block) yield if block end |