flashbackzoo / copytoclipboard
Copy a SilverStripe field's value to the clipboard.
Installs: 51
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Language:JavaScript
Type:silverstripe-module
Requires
- silverstripe/framework: >=3.1
This package is not auto-updated.
Last update: 2024-12-21 19:31:42 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.