Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@splidejs/splide-extension-grid

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splidejs/splide-extension-grid

The extension of Splide for creating grid.

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Grid - Splide Extension

This is an extension of the Splide slider library for creating rows and cols in a slider.

Sample Slider

Installation

NPM(Recommended)

  1. Get the latest extension by NPM:
    $ npm install @splidejs/splide-extension-grid
    
  2. Mount the extension to the Splide.
    import Splide from '@splidejs/splide';
    import Grid from '@splidejs/splide-extension-grid';
    new Splide( '#splide' ).mount( { Grid } );
    

CDN or Hosting Files

  1. Visit jsDelivr and get the links of the latest files or download files from the dist library.
  2. Import minified JavaScript files on your site:
    <script src="https://cdn.jsdelivr.net/npm/@splidejs/splide-extension-grid@0.1.2/dist/js/splide-extension-grid.min.js">
    
    Note that version numbers above are incorrect.
  3. Mount the extension to the Splide.
    new Splide( '#splide' ).mount( window.splide.Extensions );
    

Available Options

Pass grid as an object to options:

new Splide( '#splide', { grid: {
  rows: 2,
  cols: 2,
  gap : {
    row: '1rem',
    col: '1.5rem',
  }
} } ).mount( { Grid } );
  • rows: Number of rows.
  • cols: Number of columns.
  • dimensions: Set of dimensions(rows and cols) such as [ [ 1, 1 ], [ 2, 2 ] ]. rows and cols are ignored when this option is provided.
  • gap: An object containing gap size for rows and cols.

License

Splide is released under the MIT license.
© 2020 Naotoshi Fujita

Keywords

FAQs

Package last updated on 15 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc