msp/slick
最新稳定版本:0.2.0
Composer 安装命令:
composer require msp/slick
包简介
Magento 2 wrapper for kenwheeler/slick
README 文档
README
This module lets you use Slick with Magento 2 throught requirejs
Installation
composer require msp/slick
bin/magento setup:upgrade
Usage
Initialization
You can init the slider with data-mage-init:
<div class="your-class" data-mage-init='{
"slick": {
...
"autoplay" : true,
...
}
}'>
<div>your content</div>
<div>your content</div>
<div>your content</div>
</div>
or with a <script type="text/x-magento-init">:
<div id="your-id" class="your-class">
<div>your content</div>
<div>your content</div>
<div>your content</div>
</div>
<script type="text/x-magento-init">
{
"#your-id": {
"slick": {
...
"autoplay" : true,
...
}
}
}
</script>
统计信息
- 总下载量: 36.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2018-05-31