Part-DB.Part-DB-server/assets/controllers/elements/select_multiple_controller.js

15 lines
339 B
JavaScript
Raw Normal View History

import {Controller} from "@hotwired/stimulus";
import TomSelect from "tom-select";
export default class extends Controller {
_tomSelect;
connect() {
this._tomSelect = new TomSelect(this.element, {
maxItems: 1000,
allowEmptyOption: true,
plugins: ['remove_button'],
});
}
}