mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Initialize selectpicker via stimulus controller.
This commit is contained in:
parent
f1ea25cad2
commit
f276c436ae
16 changed files with 31 additions and 32 deletions
12
assets/controllers/elements/selectpicker_controller.js
Normal file
12
assets/controllers/elements/selectpicker_controller.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
import {Controller} from "@hotwired/stimulus";
|
||||
import "bootstrap-select";
|
||||
import 'bootstrap-select/dist/css/bootstrap-select.css'
|
||||
|
||||
export default class extends Controller {
|
||||
connect() {
|
||||
$(this.element).selectpicker({
|
||||
dropdownAlignRight: 'auto',
|
||||
container: '#content',
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue