Module: Maglove::Widgets::Slider::Helpers

Defined in:
lib/maglove/widgets/slider.rb

Instance Method Summary collapse

Instance Method Details

#slider_item(options = {}, &block) ⇒ Object



47
48
49
50
51
52
# File 'lib/maglove/widgets/slider.rb', line 47

def slider_item(options = {}, &block)
  haml_tag :div, class: "item" do
    yield if block
    drop_container
  end
end

#slider_widget(options = {}, &block) ⇒ Object



39
40
41
42
43
44
45
# File 'lib/maglove/widgets/slider.rb', line 39

def slider_widget(options = {}, &block)
  widget_block(Widgets::Slider.new(options)) do |widget|
    haml_tag :div, widget.slider_options do
      yield if block
    end
  end
end