Module: Workarea::Storefront::ProductMediaSliderHelper
- Defined in:
- app/helpers/workarea/storefront/product_media_slider_helper.rb
Instance Method Summary collapse
- #media_alt_image_slider_options(product_id) ⇒ Object
- #media_primary_image_slider_options(product_id) ⇒ Object
Instance Method Details
#media_alt_image_slider_options(product_id) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/helpers/workarea/storefront/product_media_slider_helper.rb', line 4 def (product_id) { waitForImages: true, options: { asNavFor: "##{product_id}_primary_media_carousel", slidesToShow: 4, slidesToScroll: 1, autoplay: false, mobileFirst: true, dots: false, arrows: true, focusOnSelect: true } }.to_json end |
#media_primary_image_slider_options(product_id) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'app/helpers/workarea/storefront/product_media_slider_helper.rb', line 20 def (product_id) { waitForImages: true, options: { asNavFor: "##{product_id}_alt_media_carousel", slidesToShow: 1, slidesToScroll: 1, autoplay: false, mobileFirst: true, dots: false, arrows: true }, forceSetPosition: true }.to_json end |