Class: Maglove::Widget::LegacyPage
- Defined in:
- lib/maglove/widget/page.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from V1
#drop_container, #widget_options
Methods inherited from Base
#initialize, #style_string, #widget_options
Constructor Details
This class inherits a constructor from Maglove::Widget::Base
Instance Method Details
#defaults ⇒ Object
21 22 23 24 25 26 |
# File 'lib/maglove/widget/page.rb', line 21 def defaults { text_color: "#000000", background_color: "#FFFFFF" } end |
#identifier ⇒ Object
17 18 19 |
# File 'lib/maglove/widget/page.rb', line 17 def identifier "page" end |
#render(&block) ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/maglove/widget/page.rb', line 28 def render(&block) super do haml_tag :div, id: "page-container" do haml_tag :div, id: "page-contents" do yield self if block_given? end end end end |