blob: 013e642baec37fdb55657152fe45c92a07b7cb41 [file] [log] [blame]
import { $$ } from '../dom';
import { ClipboardSk } from './clipboard-sk';
import './index';
// If a clipboard value is too expensive to calculate all the time, for example,
// a CSV file, then you can set the `calculatedValue` property on the
// clipboard-sk element and that will only be called if the user actually clicks
// on the element.
$$<ClipboardSk>('#onthefly')!.calculatedValue = async (): Promise<string> =>
'This is the altered value.';