From c4e1e7a9ecbea1ac6915c4ffba5758723b0f40c7 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Tue, 13 Aug 2024 10:44:52 +0700 Subject: [PATCH] Feature #12 : add function to handle select option field - class with .tomselect can do search for value on select option field --- resources/js/app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/js/app.js b/resources/js/app.js index b24af5d..b8211d4 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -7,3 +7,14 @@ import $ from 'jquery'; window.jQuery = $; window.$ = $; + + +import TomSelect from "tom-select"; + +let settings = { + plugins: ['dropdown_input'], + create: false, + createOnBlur: true +}; + +new TomSelect('.tomselect', settings);