Sha256: df95be38b8132917e8c69fc42f6663416ff042535fa8e4574f98db24453306c4

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

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

// Connects to data-controller="ts--select"
export default class extends Controller {
  connect() {
    new TomSelect(this.element, { create: false, plugins: ['remove_button'] })
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tybo-0.0.3 lib/app/javascript/controllers/ts/select_controller.js