Sha256: a97206023153dcd9951f9c22ab0db4490ba091363bcf4453e3c0fbca4de06411

Contents?: true

Size: 281 Bytes

Versions: 17

Compression:

Stored size: 281 Bytes

Contents

class Select extends HTMLSelectElement {
  connectedCallback() {
    this.classList.add("alchemy_selectbox")

    $(this).select2({
      minimumResultsForSearch: 5,
      dropdownAutoWidth: true
    })
  }
}

customElements.define("alchemy-select", Select, { extends: "select" })

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
alchemy_cms-7.1.13 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.12 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.11 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.10 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.9 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.8 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.7 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.6 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.5 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.4 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.3 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.2 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.1 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.0 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.0.pre.rc1 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.0.pre.b2 app/javascript/alchemy_admin/components/select.js
alchemy_cms-7.1.0.pre.b1 app/javascript/alchemy_admin/components/select.js