Module: Lazybox::Helper
- Defined in:
- lib/lazybox.rb
Instance Method Summary collapse
Instance Method Details
#render_lazybox(options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/lazybox.rb', line 8 def render_lazybox( = {}) content_tag(:div, '', id: :lazy_overlay, class: ('active' if [:active] && content_for?(:lazybox))) + content_tag(:div, id: :lazybox) do ('', id: :lazy_close, class: :visible) + content_tag(:div, id: :lazy_body) do content_for(:lazybox) end end end |