Sha256: 8416b533e464f0b1fa1fdda5ad8aee2a8483ef4a1d9a0db910d2b2c68677126d

Contents?: true

Size: 145 Bytes

Versions: 131

Compression:

Stored size: 145 Bytes

Contents

import { Controller } from '@hotwired/stimulus'

export default class extends Controller {
  destroy() {
    this.context.element.remove()
  }
}

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
avo-3.14.3 app/javascript/js/controllers/self_destroy_controller.js
avo-3.14.2 app/javascript/js/controllers/self_destroy_controller.js
avo-3.14.1 app/javascript/js/controllers/self_destroy_controller.js
avo-3.14.0 app/javascript/js/controllers/self_destroy_controller.js
avo-3.13.7 app/javascript/js/controllers/self_destroy_controller.js
avo-3.13.6 app/javascript/js/controllers/self_destroy_controller.js
avo-3.13.5 app/javascript/js/controllers/self_destroy_controller.js
avo-3.13.4 app/javascript/js/controllers/self_destroy_controller.js
avo-3.13.3 app/javascript/js/controllers/self_destroy_controller.js
avo-3.13.2 app/javascript/js/controllers/self_destroy_controller.js
avo-3.13.1 app/javascript/js/controllers/self_destroy_controller.js
avo-3.13.0 app/javascript/js/controllers/self_destroy_controller.js
avo-3.12.0 app/javascript/js/controllers/self_destroy_controller.js
avo-3.11.10 app/javascript/js/controllers/self_destroy_controller.js
avo-3.11.9 app/javascript/js/controllers/self_destroy_controller.js
avo-3.11.8 app/javascript/js/controllers/self_destroy_controller.js
avo-3.11.7 app/javascript/js/controllers/self_destroy_controller.js
avo-3.11.6 app/javascript/js/controllers/self_destroy_controller.js
avo-3.11.5 app/javascript/js/controllers/self_destroy_controller.js
avo-3.11.4 app/javascript/js/controllers/self_destroy_controller.js