@types/jquery.tinycarousel

TypeScript definitions for jQuery tinycarousel

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
35,083731Aug 5, 2021Oct 5, 2012Minified + gzip package size for @types/jquery.tinycarousel in KB

Readme

Installation

npm install --save @types/jquery.tinycarousel

Summary

This package contains type definitions for jQuery tinycarousel (http://baijs.nl/tinycarousel/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jquery.tinycarousel.

index.d.ts

// Type definitions for jQuery tinycarousel 1.9
// Project: http://baijs.nl/tinycarousel/
// Definitions by: Christiaan Rakowski <https://github.com/csrakowski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

/// <reference types="jquery" />

declare namespace JQueryTinyCarousel {
    export interface JQueryTinyCarouselOptions {
        /**
        * Start block of the carousel. (default: 1)
        */
        start?: number | undefined;
        /**
        * Vertical or horizontal scroller? 'x' or 'y'. (default: 'x')
        */
        axis?: string | undefined;
        /**
        * How many blocks do you want to move at a time? (default: 1)
        */
        display?: number | undefined;
        /**
        * If interval is true and rewind is true it will play in reverse if the last slide is reached. (default: false)
        */
        rewind?: boolean | undefined;
        /**
        * Show left and right navigation buttons? (default: true)
        */
        controls?: boolean | undefined;
        /**
        * Show page number navigation buttons? (default: false)
        */
        pager?: boolean | undefined;
        /**
        * Move to the next block on an interval. (default: false)
        */
        interval?: boolean | undefined;
        /**
        * Interval time in milliseconds. (default: 3000)
        */
        intervaltime?: number | undefined;
        /**
        * Show animation when changing block? (default: true)
        */
        animation?: boolean | undefined;
        /**
        * Time of the animation in miliseconds (default: 1000)
        */
        duration?: number | undefined;
        /**
        * Function that executes after every move (default: null)
        */
        callback? : ((element: HTMLElement, index: number) => void) | undefined;
    }
}
interface JQuery {
    /**
    * Creates a new tinycarousel with the specified, or default, options.
    *
    * @param options The options
    */
    tinycarousel(options?: JQueryTinyCarousel.JQueryTinyCarouselOptions): JQuery;
    /**
    * Moves the tinycarousel to the specified block.
    *
    * @param index The index of the block to move to
    */
    tinycarousel_move(index: number): void;

    /**
    * Starts the interval.
    */
    tinycarousel_start(): void;

    /**
    * Stops the interval.
    */
    tinycarousel_stop(): void;
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 16:22:42 GMT
  • Dependencies: @types/jquery
  • Global values: none

Credits

These definitions were written by Christiaan Rakowski.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.