Sha256: 6633ead44fcda1eb780ad88216917d1d29df3b331d3e7e345da714fb3e8dfaee

Contents?: true

Size: 241 Bytes

Versions: 6

Compression:

Stored size: 241 Bytes

Contents

import { Controller } from 'stimulus'

export default class extends Controller {
  static targets = [ "list" ]
  connect() {
    this.element.classList.add("twiddle")
  }

  toggle() {
    this.element.classList.toggle("twiddle-open")
  }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-hierarchy-6.0.1 app/assets/javascripts/blacklight/hierarchy/blacklight_hierarchy_controller.js
blacklight-hierarchy-6.0.0 app/assets/javascripts/blacklight/hierarchy/blacklight_hierarchy_controller.js
blacklight-hierarchy-5.4.0 app/assets/javascripts/blacklight/hierarchy/blacklight_hierarchy_controller.js
blacklight-hierarchy-5.3.0 app/assets/javascripts/blacklight/hierarchy/blacklight_hierarchy_controller.js
blacklight-hierarchy-5.2.0 app/assets/javascripts/blacklight/hierarchy/blacklight_hierarchy_controller.js
blacklight-hierarchy-5.1.0 app/assets/javascripts/blacklight/hierarchy/blacklight_hierarchy_controller.js