npm.io
1.8.35 • Published 2 years ago

@types/jquery.tinyscrollbar

Licence
MIT
Version
1.8.35
Deps
1
Size
6 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/jquery.tinyscrollbar

Summary

This package contains type definitions for jquery.tinyscrollbar (http://baijs.nl/tinyscrollbar/).

Details

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

index.d.ts

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

declare namespace JQueryTinyScrollbar {
    export interface JQueryTinyScrollbarOptions {
        /**
         * Enable mobile invert style scrolling. (default: false)
         */
        invertscroll?: boolean | undefined;
        /**
         * Vertical or horizontal scroller? 'x' or 'y'. (default: 'x')
         */
        axis?: string | undefined;
        /**
         * How many pixels must the mouswheel scrolls at a time. (default: 40)
         */
        wheel?: number | undefined;
        /**
         * Enable or disable the mousewheel. (default: true)
         */
        scroll?: boolean | undefined;
        /**
         * Return scrollwheel event to browser if there is no more content. (default: true)
         */
        lockscroll?: boolean | undefined;
        /**
         * Set the size of the scrollbar to auto or a fixed number. (default: 'auto')
         */
        size?: any;
        /**
         * Set the size of the thumb to auto or a fixed number. (default: 'auto')
         */
        sizethumb?: any;
    }
}
interface JQuery {
    /**
     * Creates a new tinyscrollbar with the specified, or default, options.
     *
     * @param options The options
     */
    tinyscrollbar(options?: JQueryTinyScrollbar.JQueryTinyScrollbarOptions): JQuery;
    /**
     * Updates an existing tinyscrollbar with the specified, or default, options.
     *
     * @param options The options
     */
    tinyscrollbar_update(options?: any): JQuery;
}

Additional Details

  • Last updated: Tue, 30 Jan 2024 2145 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Christiaan Rakowski.