// Visit The Stimulus Handbook for more details // https://stimulusjs.org/handbook/introduction // // This example controller works with specially annotated HTML like: // //
//

//
import { Controller } from "stimulus" export default class extends Controller { static targets = [ "source" ] connect() { } copy(event) { event.preventDefault(); this.sourceTarget.select() document.execCommand("copy") } }