Updates to the ZeroClipboard definition.

This commit is contained in:
Blake Niemyjski
2013-02-06 08:55:41 -06:00
parent 8cfe8c7b4f
commit 4bdec655eb

View File

@@ -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;
}