Sha256: 9d0c4d0e47e3644147b93cba3a86c62db6fa9483942960abb8db2dd5e3e57f76
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 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.bridgeElement.click() }) } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strada-rails-0.0.2 | lib/install/app/javascript/controllers/bridge/nav_button_controller.js |