Class: Maglove::Widget::Image

Inherits:
V2
  • Object
show all
Defined in:
lib/maglove/widget/image.rb

Instance Attribute Summary

Attributes inherited from Base

#options, #scope

Instance Method Summary collapse

Methods inherited from V2

#render, #widget_options

Methods inherited from Base

#initialize, #render, #style_string, #widget_options

Constructor Details

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

Instance Method Details

#defaultsObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/maglove/widget/image.rb', line 8

def defaults
  {
    style: "img-responsive",
    align: "center",
    source: false,
    magnify: false,
    parallax_effect: "none",
    parallax_speed: 0.6
  }
end

#identifierObject



4
5
6
# File 'lib/maglove/widget/image.rb', line 4

def identifier
  "image"
end