mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 11:42:19 -05:00
13 lines
249 B
TypeScript
13 lines
249 B
TypeScript
import { Controller } from '@hotwired/stimulus'
|
|
|
|
// Connects to data-controller="editable"
|
|
export default class extends Controller {
|
|
static values = {
|
|
text: String
|
|
}
|
|
|
|
copy (): void {
|
|
navigator.clipboard.writeText(this.textValue)
|
|
}
|
|
}
|