copyElement

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.clipboard

This function allows you to copy to the clipboard the passed dom node element with his style

Params

  1. $elm*-HTMLElement

    The dom node element to copy to the clipboard

Example

import { copyElement } from '@blackbyte/sugar/clipboard';
copyElement($elm);