Sha256: 277a8622ec4fd779b6a78252497e091f23287cc2c403a04f68532b91bcea2f65
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
import { BridgeComponent } from "@hotwired/strada" export default class extends BridgeComponent { static component = "nav-button" connect() { super.connect() if (this.bridgeElement.enabled) { this.notifyBridgeOfConnect() } } notifyBridgeOfConnect() { const title = this.bridgeElement.title this.send("connect", { title }, () => { this.bridgeElement.click() }) } }
Version data entries
3 entries across 3 versions & 1 rubygems