Class ZeroClipboard

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(elements?: any, options?: ZeroClipboardOptions): ZeroClipboard

Parameters

Returns

ZeroClipboard

Properties

public activeClass: string

public hoverClass: string

public moviePath: string

public ready: boolean

public text: string

public trustedDomains: any

public version: string

Methods

public activate(element: any)

Parameters

  • element: any

public clip(elements: any)

Parameters

  • elements: any

public static config(options: ZeroClipboardOptions)

Parameters

public deactivate()

public static destroy()

public static emit(eventName: string, args: any)

Parameters

  • eventName: string
  • args: any

public off(eventName: string, func: Function)

Parameters

  • eventName: string
  • func: Function

public on(eventName: string, func: Function)

Parameters

  • eventName: string
  • func: Function

public reposition()

public setSize(width: number, height: number)

Parameters

  • width: number
  • height: number

public setText(newText: string)

Parameters

  • newText: string

public title(newTitle: string)

Parameters

  • newTitle: string

public unclip(elements: any)

Parameters

  • elements: any