magenio/magento2-tinyslider 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

magenio/magento2-tinyslider

最新稳定版本:1.0.1

Composer 安装命令:

composer require magenio/magento2-tinyslider

包简介

Magento2 Tiny Slider

README 文档

README

This module allows you to use Tiny Slider 2 in your Magento frontend.

GitHub release

Tiny-slider Release

Requirements

Generic badge Generic badge Generic badge

INSTALL

  • run
composer require 'magenio/magento2-tinyslider'

or add the following lines into your composer.json:

"require":{
    ...
    "magenio/magento2-tinyslider":"^1.0.0"
 }

Then run this commands:

composer update
bin/magento cache:flush
bin/magento module:enable Magenio_TinySlider
bin/magento setup upgrade

USAGE

Declarative notation

  • Using data-mage-init attribute. Example:
data-mage-init='{"tinySliderInit":{ 
        "items": 1,
       "responsive": {
            "640": {
                "edgePadding": 20,
                "items": 2
            },
            "1024": {
                "items": 4
            }
      } 
}}'>
  • Using <script type="text/x-magento-init"> ... </script> tag. Example:
<script type="text/x-magento-init">
 {
    "<element_selector>": {
        "tinySliderInit": {
            "items": 1,
            "responsive": {
                 "640": {
                     "edgePadding": 20,
                     "items": 2
                 },
                 "1024": {
                     "items": 4
                 }
            } 
        }
    }
 }
</script>

Imperative notation

<script>
     require([
        'tinySlider'
    ], function () {
         return tns({
               "container": "<element_selector>",
               "items": 1,
               "responsive": {
               "640": {
                   "edgePadding": 20,
                       "items": 2
               },
               "1024": {
                   "items": 4
               }
           }
       });
    });
</script>

Features and Options

All features and options for Tiny Slider are available on tiny-slider's github page:

Tiny Slider 2

Development

  • For work / contribute to development of tiny-slider or for update the library run
npm install

or

npm update --save

统计信息

  • 总下载量: 5.8k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-13