2017 © Pedro Peláez
 

magento2-module lightslider

Magento module wrapper for LightSlider

image

msp/lightslider

Magento module wrapper for LightSlider

  • Sunday, February 4, 2018
  • by magespecialist
  • Repository
  • 5 Watchers
  • 4 Stars
  • 4,856 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 4 % Grown

The README.md

Magento 2 LightGallery module

This module lets you use lightSlider with Magento 2 throught requirejs., (*1)

Installation

composer require msp/lightSlider
bin/magento module:enable MSP_LightSlider
bin/magento setup:upgrade

Usage

You must include the css via layout XML, for example if you want to use the gallery in the product page add to catalog_product_view.xml:, (*2)

<head>
    ...
    <css src="MSP_LightSlider::css/lightslider.min.css"/>
    ...
</head>

You can init the gallery with data-mage-init:, (*3)

<div id="your-slider" data-mage-init='{
    "LightSlider": {
        "item": 1
    }
}'>
    <a href="img/kitten1.jpg">
        <img src="img/kitten1-thumb.jpg" />
    </a>
    <a href="img/kitten2.jpg">
        <img src="img/kitten2-thumb.jpg" />
    </a>
    <a href="img/kitten3.jpg">
        <img src="img/kitten3-thumb.jpg" />
    </a>
</div>

or with a <script type="text/x-magento-init">:, (*4)

<div id="your-gallery">
    <a href="img/kitten1.jpg">
        <img src="img/kitten1-thumb.jpg" />
    </a>
    <a href="img/kitten2.jpg">
        <img src="img/kitten2-thumb.jpg" />
    </a>
    <a href="img/kitten3.jpg">
        <img src="img/kitten3-thumb.jpg" />
    </a>
</div>
<script type="text/x-magento-init">
     {
         "#your-slider": {
             "LightSlider": {
                 "item": 1
             }
         }
     }
</script>

The Versions

04/02 2018

dev-master

9999999-dev

Magento module wrapper for LightSlider

  Sources   Download

OSL 3.0 OSL-3.0

The Requires

 

01/02 2017

0.1.2

0.1.2.0

Magento module wrapper for LightSlider

  Sources   Download

OSL 3.0

The Requires

 

18/01 2017

0.1.1

0.1.1.0

Magento module wrapper for LightSlider

  Sources   Download

OSL 3.0

The Requires

 

27/10 2016

0.1.0

0.1.0.0

Magento module wrapper for LightSlider

  Sources   Download

OSL 3.0

The Requires