mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
15 lines
No EOL
572 B
JavaScript
15 lines
No EOL
572 B
JavaScript
const bootstrap = window.bootstrap = require('bootstrap'); // without this bootstrap-select crashes with `undefined bootstrap`
|
|
require('bootstrap-select/js/bootstrap-select'); // we have to manually require the working js file
|
|
|
|
import {Controller} from "@hotwired/stimulus";
|
|
import "bootstrap-select/dist/css/bootstrap-select.css";
|
|
import "../../css/selectpicker_extensions.css";
|
|
|
|
export default class extends Controller {
|
|
connect() {
|
|
$(this.element).selectpicker({
|
|
dropdownAlignRight: 'auto',
|
|
container: '#content',
|
|
});
|
|
}
|
|
} |