Class: Maglove::Widgets::Image
- Inherits:
-
Base
- Object
- Base
- Maglove::Widgets::Image
show all
- Defined in:
- lib/maglove/widgets/image.rb
Instance Attribute Summary
Attributes inherited from Base
#options, #scope
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #widget_options
Instance Method Details
#defaults ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/maglove/widgets/image.rb', line 8
def defaults
{
style: "img-responsive",
align: "center",
source: false,
magnify: false,
tooltip_icon: "bullhorn",
tooltip_text_alignment: "justify",
tooltip_text_size: "medium",
tooltip_position: "top-right",
tooltip_text: ""
}
end
|
#identifier ⇒ Object
4
5
6
|
# File 'lib/maglove/widgets/image.rb', line 4
def identifier
"image"
end
|
#template(&block) ⇒ Object
22
23
24
|
# File 'lib/maglove/widgets/image.rb', line 22
def template(&block)
yield if block
end
|