Laravel Livewire Dependent Dropdown with Select2

  Рет қаралды 8,354

Tony Xhepa

Tony Xhepa

Күн бұрын

Пікірлер: 21
@tonyxhepaofficial
@tonyxhepaofficial Жыл бұрын
Laravel Livewire Dependent Dropdown with Select2
@ZahraNurwantia
@ZahraNurwantia 7 ай бұрын
thanks bro, i was honestly confused by the livewire 3 updates, the method are so much different to implement select2 than the previous livewire version
@jersonmoreno7618
@jersonmoreno7618 Жыл бұрын
It's a nice example. Thanks for that!
@javajdk3293
@javajdk3293 Ай бұрын
Thanks a lot ❤ and we want new things about vue js please
@FaizanAmin_Faizi
@FaizanAmin_Faizi Жыл бұрын
Thanks a lot tony for making this on my request 😊
@davidmutua6971
@davidmutua6971 10 ай бұрын
Livewire v3 not working with multiple attribute. The multiple select is distorted. Please make a demo to demo multiple in livewire v3
@Darkenfaith
@Darkenfaith 5 ай бұрын
Hi, how to get selected data and store it to database? I've added wire:model on select tag but always return null when I tried to get the data
@ClementLanot
@ClementLanot Жыл бұрын
Can u do it with TomSelect?
@michaelbarasa1569
@michaelbarasa1569 Жыл бұрын
Can you do one for updating
@JCPatagonia
@JCPatagonia 10 ай бұрын
Tks! Its posible use select2 in modal component?
@appimedi9738
@appimedi9738 8 ай бұрын
hi tony, what is the reason why you don't like jquery?
@Arjun-y1q9i
@Arjun-y1q9i 18 күн бұрын
Hi Its usefull .I need one help from you. can you send me this project git link
@gaton313
@gaton313 Жыл бұрын
thank you. need for multi select dropdown also.
@asdf072xxp
@asdf072xxp 6 ай бұрын
Do you (anyone) know how to get it to select initialized values correctly? If in this example, you initialize public $selectedCountry = 2, the Select2 element won't display the correct country (although it will report the correct value in the console). Anyone have a fix?
@devhammed
@devhammed Жыл бұрын
Nice tutorial! But you don't need the document ready since Livewire will execute the script only when it's about to work on the component and instead of adding ID to the select element, I would use a data- attribute or a class instead (e.g data-select-input or .select-input) to avoid using names that can result in invalid selectors (e.g Postal Code) and the script will be like: const select = $wire.$el.querySelector('[data-select-input]'); // or $wire.$el.querySelector('.select-input'); $(select).select2(); $(select).on('change', function (event) { $wire.$set('value', event.target.value); });
@-_-balen-_-9722
@-_-balen-_-9722 Жыл бұрын
thank you
@tonyxhepaofficial
@tonyxhepaofficial Жыл бұрын
Welcome!
@krekas
@krekas Жыл бұрын
Please don't use select2. There are better alternatives these days without jquery
@DanMlayah
@DanMlayah Жыл бұрын
Examples of these alternatives ?
@krekas
@krekas Жыл бұрын
tom select, virtual select, choicesjs
@yusufbakkali3410
@yusufbakkali3410 Жыл бұрын
yeah tom select is good and better of select2 for me
AlpineJS Intersect Plugin - Create Livewire Infinite Scrolling
11:09
Is Laravel Livewire actually secure?
8:19
Josh Cirre
Рет қаралды 10 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Laravel Livewire v3 Dependent Dropdown
20:16
Tony Xhepa
Рет қаралды 6 М.
Beautiful Landing Pages with Cursor AI - Full Tutorial
18:03
Artem Kirsanov
Рет қаралды 910
Laravel + Service Pattern + DTOs = ❤️❤️❤️
17:52
Przemysław Przyłucki
Рет қаралды 55 М.
Why RISC-V Matters
13:42
ExplainingComputers
Рет қаралды 4,6 М.
[Live-coding] Laravel Livewire: Parent-Child Form Example
17:08
Laravel Daily
Рет қаралды 90 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН