@types/jquery-fullscreen
TypeScript icon, indicating that this package has built-in type declarations

1.1.32 • Public • Published

Installation

npm install --save @types/jquery-fullscreen

Summary

This package contains type definitions for jquery-fullscreen (https://github.com/kayahr/jquery-fullscreen-plugin).

Details

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

index.d.ts

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

interface JQuery {
    /**
     * You can either switch the whole page or a single HTML element to fullscreen mode
     * This only works when the code was triggered by a user interaction (For example a onclick event on a button). Browsers don't allow entering fullscreen mode without user interaction.
     * Fullscreen mode is always exited via the document but this plugin allows it also via any HTML element. The owner document of the selected HTML element is used
     */
    fullScreen(fullScreen: boolean): JQuery | boolean;

    /**
     * The method returns the current fullscreen element (or true if browser doesn't support this) when fullscreen mode is active,
     * false if not active or null when the browser does not support fullscreen mode at all
     */
    fullScreen(): boolean;

    /**
     * The plugin provides another method for simple fullscreen mode toggling
     */
    toggleFullScreen(): JQuery | boolean;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/jquery

Credits

These definitions were written by Bruno Grieder.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jquery-fullscreen

Weekly Downloads

3

Version

1.1.32

License

MIT

Unpacked Size

4.64 kB

Total Files

5

Last publish

Collaborators

  • types