From 4bdec655eb12c284a65ba7220bf434735f194ff9 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Wed, 6 Feb 2013 08:55:41 -0600 Subject: [PATCH] Updates to the ZeroClipboard definition. --- zeroclipboard/zeroclipboard.d.ts | 46 +++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/zeroclipboard/zeroclipboard.d.ts b/zeroclipboard/zeroclipboard.d.ts index 42191c0a8a..86713503e3 100644 --- a/zeroclipboard/zeroclipboard.d.ts +++ b/zeroclipboard/zeroclipboard.d.ts @@ -4,16 +4,38 @@ // Updated by: Blake 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); - } -} \ No newline at end of file +interface ZeroClipboardOptions { + moviePath?: string; + trustedDomains?: any; + hoverClass?: string; + activeClass?: string; +}