Sha256: 54c15fc47aa62dde4fe4770d3a13d0f63b1ccc0a526c13ca4f22abb16c5a00c1

Contents?: true

Size: 322 Bytes

Versions: 5

Compression:

Stored size: 322 Bytes

Contents

import { BridgeComponent } from "@hotwired/strada"

export default class extends BridgeComponent {
  static component = "flash-message"

  connect() {
    super.connect()
    this.notifyBridgeOfConnect()
  }

  notifyBridgeOfConnect() {
    const title = this.bridgeElement.title
    this.send("connect", { title })
  }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
strada-rails-0.0.5 lib/install/app/javascript/controllers/bridge/flash_message_controller.js
strada-rails-0.0.4 lib/install/app/javascript/controllers/bridge/flash_message_controller.js
strada-rails-0.0.3 lib/install/app/javascript/controllers/bridge/flash_message_controller.js
strada-rails-0.0.2 lib/install/app/javascript/controllers/bridge/flash_message_controller.js
strada-rails-0.0.1 lib/install/app/javascript/controllers/bridge/flash_message_controller.js