šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

ngx-custom-carousel

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package version was removed
This package version has been unpublished, mostly likely due to security reasons

ngx-custom-carousel

Angular library for a customizable carousel component with support for custom templates and swipe gestures.

0.0.0-watch
unpublished
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
Ā 
Created
Source

Angular library for a customizable carousel component with support for custom templates and swipe gestures.

Installation

Install ngx-custom-carousel via npm:

npm install ngx-custom-carousel --save

Demo

portfolio

Usage

  • Import the NgxCustomCarouselModule in your Angular module:

    import { NgxCustomCarouselModule } from "ngx-custom-carousel";
    
    @NgModule({
        imports: [NgxCustomCarouselModule],
    })
    export class YourModule {}
    
  • Use the <ngx-custom-carousel> element in your component's template to display a carousel with string items:

    <div class="container">
        <div class="hw-full">
            <h3>String Items</h3>
            <ngx-custom-carousel [items]="items"></ngx-custom-carousel>
        </div>
        <div class="hw-full">
            <h3>With Custom Template</h3>
            <ngx-custom-carousel [items]="itemsTemplate" [customItemTemplate]="userDetailsTemplate" [delay]="5000"></ngx-custom-carousel>
        </div>
    </div>
    
  • Define a custom template using the <ng-template> element for displaying user details:

    <ng-template #userDetailsTemplate let-item let-index="index">
        <div>Use your own html</div>
    </ng-template>
    

Features

  • Support for custom template using <ng-template> tag.
  • Swipe left and swipe right gestures for navigation.

FAQs

Package last updated on 24 Mar 2024

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