Select2 in Vue.js 3 with Composition API

Select2 in Vue.js 3 with Composition API

Laravel Daily

2 года назад

27,645 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

David Mutua
David Mutua - 26.07.2023 11:02

What version did you use. Current doesn't work. It complains about jQuery not have a default export. Am on Vue 3

Ответить
álvaro parra
álvaro parra - 01.04.2023 20:28

thank you Russell Crowe, you are the best !

Ответить
Sozib Hossen
Sozib Hossen - 15.12.2022 13:12

I have this error Uncaught SyntaxError: The requested module '/node_modules/jquery/dist/jquery.js?v=4781caec' does not provide an export named 'default'

Ответить
Bams Wisnu
Bams Wisnu - 13.11.2022 10:51

how add classname and name ?

Ответить
Aung Kyaw Myint
Aung Kyaw Myint - 25.10.2022 13:43

Uncaught SyntaxError: ambiguous indirect export: default ---->select2.vue

Ответить
CodigosDeLaU
CodigosDeLaU - 25.09.2022 16:27

hi i have error Uncaught SyntaxError: The requested module '/node_modules/jquery/dist/jquery.js?v=4781caec' does not provide an export named 'default'

Ответить
Dolores Ligorria
Dolores Ligorria - 15.09.2022 02:23

When I select an option from the select2, the other options are disabled and I can´t select an another

Ответить
darknmy
darknmy - 14.09.2022 11:03

A year ago Vue3 didn't have multiselect project and making your own was a better solution

Ответить
darknmy
darknmy - 14.09.2022 10:59

Better make IdNameResource

Ответить
Hieronimus Nabit
Hieronimus Nabit - 01.08.2022 09:17

Sir
how to use select2 in Nuxt Js?

Ответить
Segayi Andrew
Segayi Andrew - 31.07.2022 09:41

works like charm .. thnks .. tried hustling with the multiselect it has alot of bugs

Ответить
edseljay gavino
edseljay gavino - 26.07.2022 06:35

Great, I'm able to make it works,
However whenever I put it inside a Modal(bootstrap 5) it wont work.

Ответить
arun kumar
arun kumar - 15.07.2022 17:07

How to show the option selected when edit the same form in the dropdown. Please make a vedio

Ответить
Mijael Cabanillas
Mijael Cabanillas - 14.06.2022 00:30

How can I show more than one category in the Post list?

Ответить
LeonardoGA93
LeonardoGA93 - 21.05.2022 00:27

Any suggestions for autocomplete dropdowns that depend on other dropdowns? Currently using vue-select, got it working, but seems too complex “just” for a dropdown.

Ответить
Rajendra
Rajendra - 03.05.2022 06:21

Quasar framework has a lot of this features. I really want you to go through quasar framework

Ответить
Amirul Idzham
Amirul Idzham - 26.04.2022 02:50

Good video, just have one question, do this package depend on jQuery? I think I did use similar package but having issue integrating both jQuery and vue syntax. In the code I write, according to the syntax, it is impossible to implement at certain stage.

Ответить
Dragos
Dragos - 26.04.2022 01:45

Last time I needed something like this I made it myself.Kinda simple concept: a div container, a input followed by a list. If you consider you need to can use a virtualscroller made by somebody else or made by you.
It's not a big deal to make and I find it easier to make my own stuff(if it's simple enought) than to learn how to use and modify somethign that already exists.

Ответить
Galih Anggoro Jati
Galih Anggoro Jati - 26.04.2022 01:43

Vue-Multiselect

Ответить
JOSE BORGES
JOSE BORGES - 25.04.2022 20:06

Thanks for the video, recently I added that library to my proyect only for studies purposes, i was using bootstrap 5 so I passed in settings prop { theme: 'bootstrap-5'} and before I was added select2-bootstrap-5-theme.min.css in index file so the select look like more stylized by bootstrap 5 classes. I need get better my english i know.

Ответить
Mateusz
Mateusz - 25.04.2022 19:57

Vue-select and vue-multiselect. Both works with Vue3 and has support for async loading.

Ответить
Marco Masi
Marco Masi - 25.04.2022 09:43

I don't get the point in using a library which depends on jQuery while we are leveraging on vue.js. Doesn't this add a lot of overhead? Thanks!

Ответить
Marcin Kaźmierczak
Marcin Kaźmierczak - 25.04.2022 08:39

We need more advanced solution. For example we have 100 000. How to avoid loading all those 100 000, and enable with this select2 asynchronous loading of categories by start typing search value...for example I will type "sel" so options for select will be loaded asynchronously and I will have options "selected" "select by editor" "selected by author" and other started with "sel".

Ответить
Prince Husky
Prince Husky - 25.04.2022 08:27

Ah yes the legendary jquery select2, till this day i'm still using it and recently try Vue 3 on my Laravel project, this is what i need. Thank you!

Ответить