Class: Maglove::Widgets::Paragraph

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

Defined Under Namespace

Modules: Helpers

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #typeloft_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
# File 'lib/maglove/widgets/paragraph.rb', line 8

def defaults
  {
    style: "default",
    align: "left",
    size: "md",
    margin_bottom: "1em",
    drop_cap: "",
    drop_cap_color: "#000000",
    line_height: ""
  }
end

#identifierObject



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

def identifier
  "paragraph"
end