Sha256: df4066b3264d719c024e88a409415202dc2a040161a97e0418b7122e4fb5dcf5
Contents?: true
Size: 362 Bytes
Versions: 1
Compression:
Stored size: 362 Bytes
Contents
import { BridgeComponent } from "@hotwired/strada" export default class extends BridgeComponent { static component = "nav-button" connect() { super.connect() this.notifyBridgeOfConnect() } notifyBridgeOfConnect() { const title = this.bridgeElement.title this.send("connect", { title }, () => { this.element.click() }) } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strada-rails-0.0.1 | lib/install/app/javascript/controllers/bridge/nav_button_controller.js |