flashbackzoo/copytoclipboard

There is no license information available for the latest version (v1.0.0) of this package.

Copy a SilverStripe field's value to the clipboard.

Installs: 50

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Language:JavaScript

Type:silverstripe-module

v1.0.0 2015-05-05 04:24 UTC

This package is not auto-updated.

Last update: 2024-05-11 15:51:15 UTC


README

Copy a SilverStripe field's value to the clipboard using https://github.com/zeroclipboard/zeroclipboard

Install the module then add the copy-to-clipboard CSS class to your text field.

  $fields->addFieldToTab("Root.Main",
    TextField::create('Text')->addExtraClass('copy-to-clipboard')
  );

This will add a copy button to your field. Clicking the button with copy the field's value to the clipboard.