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