mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Options updated
Updated the ZeroClipboardObject interface according to the latest spec and extended with JSDoc comments.
This commit is contained in:
39
zeroclipboard/zeroclipboard.d.ts
vendored
39
zeroclipboard/zeroclipboard.d.ts
vendored
@@ -31,10 +31,47 @@ declare class ZeroClipboard {
|
||||
}
|
||||
|
||||
interface ZeroClipboardOptions {
|
||||
/** Setting this to false would allow users to handle calling ZeroClipboard.activate(...); themselves instead of relying on our per-element mouseover handler */
|
||||
autoActivate?: boolean;
|
||||
|
||||
/** Include a "nocache" query parameter on requests for the SWF. */
|
||||
cacheBust?: boolean;
|
||||
|
||||
/** Debug enabled: send console messages with deprecation warnings, etc. */
|
||||
debug?: boolean;
|
||||
|
||||
/** Forcibly set the hand cursor ("pointer") for all clipped elements. */
|
||||
forceHandCursor?: boolean;
|
||||
|
||||
/** URL to the movie. NOTE: For versions >= v1.3.x and < v2.x, you must use swfPath by setting moviePath! */
|
||||
moviePath?: string;
|
||||
|
||||
/** URL to the movie, relative to the page. NOTE: For versions >= v1.3.x and < v2.x, you must use swfPath by setting moviePath! */
|
||||
swfPath?: string;
|
||||
|
||||
/** Forcibly set the hand cursor ("pointer") for all clipped elements. */
|
||||
trustedDomains?: any;
|
||||
hoverClass?: string;
|
||||
|
||||
/** Sets the title of the div encapsulating the Flash object. */
|
||||
title?: string;
|
||||
|
||||
/** The z-index used by the Flash object. */
|
||||
zIndex?: number;
|
||||
|
||||
/** DEPRECATED. The class used to indicate that a clipped element is active (is being clicked). */
|
||||
activeClass?: string;
|
||||
|
||||
/** DEPRECATED. The class used to indicate that a clipped element is being hovered over. */
|
||||
hoverClass?: string;
|
||||
|
||||
/** DEPRECATED. SWF outbound scripting policy. Possible values: "never", "sameDomain", "always". */
|
||||
allowScriptAccess?: string;
|
||||
|
||||
/** DEPRECATED, use trustedDomains instead! SWF inbound scripting policy: page origins that the SWF should trust. (single string or array of strings. */
|
||||
trustedOrigins?: any;
|
||||
|
||||
/** DEPRECATED, use cacheBust instead! Include a "nocache" query parameter on requests for the SWF. */
|
||||
useNoCache?: boolean;
|
||||
}
|
||||
|
||||
// Support AMD.
|
||||
|
||||
Reference in New Issue
Block a user