Module

base/utils/clipboard

Methods

static copyToClipboard(str)

Copies a string to the clipboard. Notice, that this operation *must* be executed upon user interaction. from: https://github.com/Chalarangelo/30-seconds-of-code#copytoclipboard-
Parameters:
Name Type Description
str string text to copy to clipboard

View Source utils/clipboard.js, line 28