Multi-select Dropdown (Select2) | Laravel Livewire 3 for Beginners EP31

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024

ความคิดเห็น • 45

  • @HamadAbdulla_7
    @HamadAbdulla_7 9 หลายเดือนก่อน +1

    Thanks🥰

    • @yelocode
      @yelocode  9 หลายเดือนก่อน

      Thanks for watching Hamad

  • @0zankurt
    @0zankurt หลายเดือนก่อน +1

    Finally someone is proud of working with jquery! I love you!

  • @lautaropiatti
    @lautaropiatti 2 หลายเดือนก่อน

    This is GOLD! I preffer to use ChoicesJS over Select2, and as you said in the video it was easy to migrate from what you explained to the usage of that library 🙌

  • @davidmutua6971
    @davidmutua6971 6 หลายเดือนก่อน +2

    How to validate the select2 Livewire v3. Move your @error() directive outside wire:ignore div

  • @Bernoli-ww2vo
    @Bernoli-ww2vo 7 หลายเดือนก่อน +2

    Thank you so much! you solved my problem

  • @eslammostafa1247
    @eslammostafa1247 3 หลายเดือนก่อน +1

    Thank you so much, that's really solved my issue, I just forgot to add wire:ignore on the main div, so I got unexpected behavior

  • @claudiobustos3376
    @claudiobustos3376 3 หลายเดือนก่อน +1

    thank you bro, you give me a BIG HELP, THANKH YOU VERY MUCH

    • @yelocode
      @yelocode  3 หลายเดือนก่อน

      Thanks for watching. Glad to hear that.

  • @luthfia2994
    @luthfia2994 7 หลายเดือนก่อน +1

    So helpfully, thank u❤❤

    • @yelocode
      @yelocode  7 หลายเดือนก่อน

      Thanks for watching, Glad it was helpful.

  • @user-cf5uf7vf2g
    @user-cf5uf7vf2g 21 วันที่ผ่านมา +1

    this @script tag bugging for a while, i hope this going to save my years of doubt how to use jquery in livewire beautifully.

  • @officialnikitayadav939
    @officialnikitayadav939 หลายเดือนก่อน

    👍👍👍👍

  • @OliverJörns-k7g
    @OliverJörns-k7g 6 หลายเดือนก่อน

    Well it can be done more easy even using Alpine which is bundled with Lifewire 3.
    Just make yourself a blade component like that. In this case I use selectize instead of select2, but the principle is the same. This way code is more in place.
    The advantage is you do not have to care about updating the script anytime you add another select field to the same form. It is all done by itself.
    Then when I need a select I can just write:
    # selectize.blade.php in components
    @props([
    'field' => '',
    'list' => [],
    ])

    @foreach($list as $value => $name)
    {{ $name }}
    @endforeach

  • @cubedev4838
    @cubedev4838 9 หลายเดือนก่อน +2

    I think you have livewire tutorial details. No channel have this kind of tutorial. Please teach multi step form using livewire

    • @davidmutua6971
      @davidmutua6971 6 หลายเดือนก่อน

      THe multi-step form is what am working on currently.

  • @rubenchris5301
    @rubenchris5301 9 หลายเดือนก่อน +1

    Amazing tutorials no one is doing them as well as you!! Could you do a video on infinite scrolling in laravel please?

    • @yelocode
      @yelocode  9 หลายเดือนก่อน

      Thanks for watching, I will try to cover it in a video

  • @amirakotbmassoud3172
    @amirakotbmassoud3172 28 วันที่ผ่านมา

    If I use in filter but when delete in select it send to backend and make filter it save the value ancient why I use live wire and select2

  • @budipriyatno5853
    @budipriyatno5853 4 หลายเดือนก่อน

    How to clear/empty select2 after form submit?

  • @hanymax
    @hanymax 9 หลายเดือนก่อน

    Thanks for great tut

    • @yelocode
      @yelocode  9 หลายเดือนก่อน +1

      Thanks for watching.

  • @MichaelDharenBernardo
    @MichaelDharenBernardo 8 หลายเดือนก่อน +1

    If you use "wire:ignore" for a select field, what happens if the options in that field can change? For instance, if you have a country and state dropdown, and the state options depend on the chosen country. We've been facing this issue with Livewire and would appreciate your assistance.

    • @OliverJörns-k7g
      @OliverJörns-k7g 6 หลายเดือนก่อน

      try my solution with alpine and use:
      x-data="{ value: @entangle($attributes->wire('model')) }"
      x-on:change="value = $event.target.value"
      and
      x-bind:value="value"
      in the select object. This should serve your purpose. Didn't try it out yet but I use something very similar to get Pickaday working with Livewire and this works.

  • @gaton313
    @gaton313 9 หลายเดือนก่อน

    Thanks for the video. ❤

    • @yelocode
      @yelocode  9 หลายเดือนก่อน +1

      You're welcome 😊

    • @gaton313
      @gaton313 9 หลายเดือนก่อน

      @@yelocode you made mention of using alpine js for multi select drop down, could you drop a guide on that, or probably a link here in the comment section.

  • @8bityard489
    @8bityard489 9 หลายเดือนก่อน +1

    Dear, sir, I follow your videos every day; please create a video on Livewire 3 and Cropper.js to crop and store the cropped image, if it is possible.

    • @yelocode
      @yelocode  9 หลายเดือนก่อน +1

      thanks for watching, will try covering it

  • @miladseifoori6645
    @miladseifoori6645 9 หลายเดือนก่อน +1

    The best teacher I have ever seen

    • @yelocode
      @yelocode  9 หลายเดือนก่อน +1

      I have not used flowbite pro so can't give an opinion on it, I personally prefer tailwind ui.

    • @miladseifoori6645
      @miladseifoori6645 9 หลายเดือนก่อน

      @@yelocode thanks bro . Good job

  • @nizz4m
    @nizz4m 7 หลายเดือนก่อน +1

    You mentioned that you didnt use select2 personally. Mind to share what you use ?

    • @yelocode
      @yelocode  6 หลายเดือนก่อน

      With livewire I usually use alpinejs. If you use jetstream or breeze, it comes with a dropdown component out the box

    • @nizz4m
      @nizz4m 6 หลายเดือนก่อน

      @@yelocode Thanks for the reply. Really appreciated.

  • @SXsoft99
    @SXsoft99 7 หลายเดือนก่อน

    only problem i found if you have your select not rendered at first because of a condition, you need to init it on load with something like alpinejs

  • @yves5960
    @yves5960 9 หลายเดือนก่อน

    Hi! What about this kind of multi select dropdown inside a modal? (Select2, choices etc..) Like with the wire elements package?

  • @appimedi9738
    @appimedi9738 9 หลายเดือนก่อน

    Great guy, excellent explaining. Excellent work.!! How can i spend you a cappuccino?

  • @doabner
    @doabner 9 หลายเดือนก่อน

    Hello, I need help? can get live that variable?

    • @doabner
      @doabner 9 หลายเดือนก่อน

      I want to create a live event that applies select2, when the user selects a car brand, immediately selecting the car model will have data. Is it possible to do so?

    • @yelocode
      @yelocode  9 หลายเดือนก่อน

      If you use $wire.set , it will perform live updates by default, to listen for the changes, you can add a lifecycle hook,
      livewire.laravel.com/docs/lifecycle-hooks#update
      I also have a video on lifecycle hooks, if you are interested:
      th-cam.com/video/QADUTtkH68Q/w-d-xo.html

  • @sabinmagar4152
    @sabinmagar4152 8 หลายเดือนก่อน

    i got $wire is not defined.

    • @yelocode
      @yelocode  8 หลายเดือนก่อน

      Make sure you have the @script directive otherwise $wire wont work

    • @sabinmagar4152
      @sabinmagar4152 8 หลายเดือนก่อน

      @@yelocode works thank you...

  • @essamal_agamy148
    @essamal_agamy148 6 หลายเดือนก่อน

    Thank you so much! you solved my problem