Class: Maglove::Widgets::Container

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

Instance Attribute Summary

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 Method Details

#defaultsObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/maglove/widgets/container.rb', line 8

def defaults
  {
    animate: "none",
    parallax_effect: "none",
    border_radius: "",
    border_width: "",
    border_style: "",
    border_color: "transparent",
    min_height: "",
    max_height: "",
    overflow_y: ""
  }
end

#identifierObject



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

def identifier
  "container"
end

#template(&block) ⇒ Object



22
23
24
# File 'lib/maglove/widgets/container.rb', line 22

def template(&block)
  yield if block
end