Sha256: 9772c5fc136316a05a4eec0bf70d2c949589711ae43e539011c220fabf1b5dfc

Contents?: true

Size: 249 Bytes

Versions: 83

Compression:

Stored size: 249 Bytes

Contents

import { Controller } from '@hotwired/stimulus'
import TomSelect from 'tom-select'

// Connects to data-controller="selectize"
export default class extends Controller {
  connect () {
    /* eslint no-new: 0 */
    new TomSelect(this.element)
  }
}

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
pg_rails-7.1.3 pg_layout/app/javascript/controllers/selectize_controller.js
pg_rails-7.1.2 pg_layout/app/javascript/controllers/selectize_controller.js
pg_rails-7.1.1.pre.6 pg_layout/app/javascript/controllers/selectize_controller.js