mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
15 lines
339 B
JavaScript
15 lines
339 B
JavaScript
|
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'],
|
||
|
});
|
||
|
}
|
||
|
|
||
|
}
|