Socket
Socket
Sign inDemoInstall

ngx-flickity-module

Package Overview
Dependencies
6
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngx-flickity-module

Angular2 component for https://flickity.metafizzy.co/


Version published
Maintainers
1
Created

Readme

Source

Flickity module for Angular2

ngx-flickity is in development and not ready for production use. Feel free to install and try it out, but depend on it at your own risk.

Installation

npm install ngx-flickity --save

Usage

Import FlickityModule into your app's modules:

import { FlickityModule } from 'ngx-flickity';

@NgModule({
  imports: [
    FlickityModule
  ]
})
 @Component({
   selector: 'my-component',
   template: `
     <div [flickity]>
       <div [flickityChild] *ngFor="let child of children">{{child.title}}</div>
     </div>
     `
 })
 class MyComponent {
   children = [
     {title: 'Child 1'},
     {title: 'Child 2'},
     {title: 'Child 3'},
     {title: 'Child 4'},
     {title: 'Child 5'},
     {title: 'Child 6'}
   ]
 }

Configuration

Options

Read about Flickity options here: https://flickity.metafizzy.co/options.html

Examples

Inline object:

<div [flickity]="{cellAlign: 'left', percentPosition: true, groupCells: true}"></div>

Events

slideSelect: EventEmitter<number>

Triggered after a slide has changed.

https://flickity.metafizzy.co/events.html#select

cellStaticClick: EventEmitter<number>

Triggered after a cell has been clicked.

https://flickity.metafizzy.co/events.html#staticclick

Examples

<div [flickity] (slideSelect)="onSelect($event)"></div>

Keywords

FAQs

Last updated on 21 Apr 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc