Class: Maglove::Widgets::Columns

Inherits:
Base
  • Object
show all
Defined in:
lib/maglove/widgets/columns.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#options, #scope

Instance Method Summary collapse

Methods inherited from Base

#initialize, #widget_options

Constructor Details

This class inherits a constructor from Maglove::Widgets::Base

Instance Attribute Details

#column_countObject (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

#columnsObject (readonly)

Returns the value of attribute columns.



4
5
6
# File 'lib/maglove/widgets/columns.rb', line 4

def columns
  @columns
end

#total_columnsObject (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

#defaultsObject



12
13
14
15
16
17
# File 'lib/maglove/widgets/columns.rb', line 12

def defaults
  {
    layout: "6x6",
    collapse_options: "sm"
  }
end

#identifierObject



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