Let's create a filter table component in Vue

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2024

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

  • @codedjango
    @codedjango ปีที่แล้ว +2

    @23:28 ...here we will additionally need to clear the statuses array upon the clicking of "Filter" button by emitting 1 more event from FilterDropdown component to parent DataTable component so that the filter in the parent DataTable component is cleared when the filter button is clicked in the FilterDropdown component, and next time it will start sending the updated list to its parent....

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

    Man, you did a great job with this video!!! Would love to see more straight Vue tutorials!

  • @sibow
    @sibow ปีที่แล้ว +2

    This was very comprehensive, and found to be useful… thanks man

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

    This was very helpful! subscribed!

  • @MrCellodj
    @MrCellodj ปีที่แล้ว +4

    Amazing video!!! 👏 I love how clear you teach these concepts in your videos. Will you be doing a follow-up adding pagination and order-by toggles by any chance?

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว +6

      Yep, I have that planned, stay tuned!

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

    thank you! it helps me understanding how to make search functionality

  • @gidaban79
    @gidaban79 ปีที่แล้ว +2

    Hi, Really great job :) just one question, If we working with API then we should send filters to backend or no ?

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

    which font you are using in your editor ??

  • @sohanrahman1897
    @sohanrahman1897 ปีที่แล้ว +1

    Great & Very Helpful! Thank You Sir!❤

  • @prindom
    @prindom 5 วันที่ผ่านมา

    great tutorial; do you have any insights into how many items such a table could handle before you would need to implement server-side filtering?

  • @MagickzRex
    @MagickzRex ปีที่แล้ว +3

    Is it possible for you to provide the source code for this project? Thanks.

  • @user-tt6nc6mo7k
    @user-tt6nc6mo7k ปีที่แล้ว +3

    Excellent video as always. That being said, I would always store the state for a table like that in the url. Guessing you didn't to keep it simple for the demo?

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว +4

      Correct! I'm planning a follow-up video to this that deals with more intricacies like browser state, v-model usage, and pagination.

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

    Thank you. The tutorial is easy, useful with a fully comprehendible explanation.

    • @aschmelyun
      @aschmelyun  6 หลายเดือนก่อน +1

      I'm glad you liked it!

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

      @@aschmelyun return cuisineFilter.value.splice(cuisineFilter.value.indexOf(filter), 1); this doesn't work until I changed it to
      return cuisineFilter.value.splice(cuisineFilter.value.indexOf(filter), -1);
      I am wondering if the same happened to others as well.

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

    bro just saved my live on this because I was told to add the same exact features by my supervisor.

  • @ordago123
    @ordago123 ปีที่แล้ว +4

    I think I disagree with having that many handle methods. Probably should've been `v-model`s. That would also allow having a clearAllFilters method in the table and send state from the server to those fields.

    • @mattskelton7471
      @mattskelton7471 ปีที่แล้ว

      Can you explain what you mean? Do you mean use v-model instead of events?

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว +2

      100% agree, kept it more verbose to kind of see how everything's moving in between components. I have a follow-up video planned that refactors this to use models and stores state via query params!

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว +3

      @@mattskelton7471 For each of the inputs (the search bar, radio buttons, and checkboxes), in Vue instead of listening to an event and using a handler function to modify the local ref, we could just directly attach the ref to the input using Vue's v-model attribute.

    • @macton182
      @macton182 6 หลายเดือนก่อน +1

      @@aschmelyun hello and thanks for your work. Is there a chance that the video (that you planned) will still appear?

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

    Makes so much sense to me compared to using React, thanks very clear. When i was trying to do something like this my initial thought was to filter at the end point to only fetch the desired "tasks" for example instead of fetching all the tasks and then filtering on the frontend, would what i was trying to do be considered bad practice? This method seems a lot easier, thank you for your time. I am going to start using Vue now

  • @CookingFantasies
    @CookingFantasies ปีที่แล้ว +1

    Amazing video and very helpful, thanks you very much! Do you happen to have a repo with the code?

  • @Richardritchie-w1f
    @Richardritchie-w1f 2 หลายเดือนก่อน

    Gold!! Great one!!

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

    Nice video,it help me a lot ❤

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

    Awesome. Just what I needed! Very clear explanations. 👌
    Any ETA on the "v-model" refactoring video? And do you have this code in a repository somewhere?

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

    love the video, are you going to upload more videos for this project or thats it ?

  • @wesleyreis9361
    @wesleyreis9361 14 วันที่ผ่านมา

    Nice job!

  • @matthiashoffmann6555
    @matthiashoffmann6555 ปีที่แล้ว

    "And as always: " Thanks for this great video!

  • @sdsd-ec8rw
    @sdsd-ec8rw 11 หลายเดือนก่อน

    4:20 "from the API that I set up earlier" - which video this API from and did you use Elasticsearch in there?

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

      idk either man, thats where im at now

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

    Thank you! very useful information. Can you make a video about adding pagination on this data using vue?

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

    Where is the api data coming from please? Is there a github repo to clone to follow along?
    I think you should have shared the resources used in the video so it is easy to follow along.

  • @iUmerFarooq
    @iUmerFarooq ปีที่แล้ว

    Man! Love your videos.
    Please make more Vue js project base tutorials.

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว +1

      Thanks! I have more coming down the line, just need to build out the projects and record them

    • @iUmerFarooq
      @iUmerFarooq ปีที่แล้ว

      @@aschmelyun Thank you Thank you. Just waiting

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

    You should definitely make a course man

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

    THANK YOU REALLY HELPFUL!

  • @patsechaluce4407
    @patsechaluce4407 ปีที่แล้ว +1

    Can you this be integrated with laravel/inertia? thanks.

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว

      Yes, definitely! It's just a plain Vue component which means we can add it easily to a Laravel app with Inertia. You'll just have to ensure that your controller has the functionality to pull in things like filter/sort changes, which can then be fired off with a partial reload: inertiajs.com/partial-reloads

    • @patsechaluce4407
      @patsechaluce4407 ปีที่แล้ว

      Thank you for the advice Sir? looking forward for more content like this :D @@aschmelyun

  • @ContextF1
    @ContextF1 ปีที่แล้ว

    what it the full code of the class of input field inside searchform and of the input inside filterdropdown

  • @BossAPlays
    @BossAPlays ปีที่แล้ว

    crystal clear explanation.
    can I request. how about a paginated version and table sorting with same search filters.. would appreciate it.

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว +2

      That's coming in a future version, yes!

    • @BossAPlays
      @BossAPlays ปีที่แล้ว

      tnx in advance! looking forward.

  • @mcprah
    @mcprah ปีที่แล้ว +1

    Great video. Could you please add pagination as well 🙏🏾

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว

      Of course! It's planned for the follow-up video out soon

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

      Pagination AND column sorting too??

  • @ΠαναγιώτηςΜουργιας
    @ΠαναγιώτηςΜουργιας ปีที่แล้ว

    What IDE are you using, Webstorm ?

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว +1

      PHPStorm, another JetBrains product!

    • @ΠαναγιώτηςΜουργιας
      @ΠαναγιώτηςΜουργιας ปีที่แล้ว

      Last question, is the UI framework bootstrap or something else ?@@aschmelyun

    • @mp-web3
      @mp-web3 11 หลายเดือนก่อน

      It's Tailwindcss @@ΠαναγιώτηςΜουργιας

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

    Great video!

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

    thank you

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

    Where's the example showing how to filter for a date that's between two chosen dates such as when you're filtering a log?

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

    Great video

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

    Anyone have a link for the source code?

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

    Is it possible to share the github code for this ? will be very helpful for this

  • @thangnq
    @thangnq ปีที่แล้ว

    cool! how to setup jetbrains like you?

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว +1

      It didn't take much work! I'm using the Material UI plugin, Palenight theme, and have a lot of the elements turned off from the View panel.

  • @boysmart339
    @boysmart339 ปีที่แล้ว

    Thanks you sir. Can you create filter with date_booking. Example: Hotel booking. ❤

  • @bohdan.vorona
    @bohdan.vorona ปีที่แล้ว

    Thanks 💓

  • @k0wu705
    @k0wu705 ปีที่แล้ว

    Thank You :) Please can u do pagination and headers sorting for this table component? :))

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว

      Great suggestion! It's definitely planned for the follow-up

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

      its a very good video. What's about the pagination and sort?@@aschmelyun

  • @diarqoroviqi4869
    @diarqoroviqi4869 ปีที่แล้ว

    Hey Andrew great video thanks man, could you mind posting a video something like how to "manage" Roles and Permission in a SPA using vue.js? It would be a great video for example in Laravel using the Spatie Roles & Permission package

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

    Great video🔥 Please help me) I have related data from laravel (desks->cards->tasks). In Vue I send all data by dynamically props.deskId. I have props : [“deskId] and when computed return props.task.value.filter not working but return task.value.filter without props gives all tasks not relative to card, but it’s filtered. I want relative to card tasks filter only

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

      I have template inside template like v-for desk in desks after v-for card in desk.cards after v-for task in card.tasks. And gives its relative data

  • @nutzersht1179
    @nutzersht1179 ปีที่แล้ว

    Nice 🙏👌

  • @firojahmed4730
    @firojahmed4730 ปีที่แล้ว

    Very declarative content. Can you share the code at git?

  • @azzhraanee201128
    @azzhraanee201128 ปีที่แล้ว

    have you tried to use v-model on the filters components directly ?? passing ":value" and emitting "input", its called custom input component

    • @aschmelyun
      @aschmelyun  ปีที่แล้ว

      That's definitely best practices, and will be a way to refactor this in a future video. Wanted to show off the "hard way" to do this!

  • @mahadevmushrooms
    @mahadevmushrooms ปีที่แล้ว

    🙏