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.4.0 app/javascript/js/controllers/self_destroy_controller.js
avo-3.3.6 app/javascript/js/controllers/self_destroy_controller.js
avo-3.3.5 app/javascript/js/controllers/self_destroy_controller.js
avo-3.3.4 app/javascript/js/controllers/self_destroy_controller.js
avo-3.3.3 app/javascript/js/controllers/self_destroy_controller.js
avo-3.3.2 app/javascript/js/controllers/self_destroy_controller.js
avo-3.3.1 app/javascript/js/controllers/self_destroy_controller.js
avo-3.3.0 app/javascript/js/controllers/self_destroy_controller.js
avo-3.2.3 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta23 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta20 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta21 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta17 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta22 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta18 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta19 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta24 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta15 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta16 app/javascript/js/controllers/self_destroy_controller.js
avo-3.0.1.beta14 app/javascript/js/controllers/self_destroy_controller.js