mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 06:40:35 +08:00
Updates to the ZeroClipboard definition.
This commit is contained in:
46
zeroclipboard/zeroclipboard.d.ts
vendored
46
zeroclipboard/zeroclipboard.d.ts
vendored
@@ -4,16 +4,38 @@
|
||||
// Updated by: Blake Niemyjski <https://github.com/niemyjski>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
module ZeroClipboard {
|
||||
export function setMoviePath(moviePath: string);
|
||||
declare class ZeroClipboard {
|
||||
constructor(elements?: any, options?: ZeroClipboardOptions);
|
||||
setCurrent(element: any);
|
||||
setText(newText: string);
|
||||
setTitle(newTitle: string);
|
||||
setSize(width: number, height: number);
|
||||
setHandCursor(enabled: bool);
|
||||
version: string;
|
||||
moviePath: string;
|
||||
trustedDomains: any;
|
||||
text: string;
|
||||
hoverClass: string;
|
||||
activeClass: string;
|
||||
resetBridge();
|
||||
ready: bool;
|
||||
reposition();
|
||||
on(eventName, func);
|
||||
addEventListener(eventName: string, func);
|
||||
off(eventName: string, func);
|
||||
removeEventListener(eventName: string, func);
|
||||
receiveEvent(eventName: string, args);
|
||||
glue(elements: any);
|
||||
unglue(elements: any);
|
||||
static setDefaults(options: ZeroClipboardOptions);
|
||||
static destroy();
|
||||
static detectFlashSupport(): bool;
|
||||
static dispatch(eventName: string, func);
|
||||
}
|
||||
|
||||
export class Client {
|
||||
constructor(element?: any);
|
||||
setText(text: string);
|
||||
ready: bool;
|
||||
clipText: string;
|
||||
handCursorEnabled: bool;
|
||||
cssEffects: bool;
|
||||
glue(element);
|
||||
}
|
||||
}
|
||||
interface ZeroClipboardOptions {
|
||||
moviePath?: string;
|
||||
trustedDomains?: any;
|
||||
hoverClass?: string;
|
||||
activeClass?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user