django-cotton, HTMX & Tailwind - Pagination and Filtering with Components in Django

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 36

  • @ItsEverythingElse
    @ItsEverythingElse 2 місяці тому +7

    Cotton has been a game-changer for my current site development. Combined with Tailwind and htmx it's an amazing combo.

    • @bugbytes3923
      @bugbytes3923  2 місяці тому +1

      @@ItsEverythingElse agreed - I love it!

  • @anouarben779
    @anouarben779 2 місяці тому +7

    This is the only channel that I automatically like its videos without even thinking abt it

    • @bugbytes3923
      @bugbytes3923  2 місяці тому +1

      @@anouarben779 thank you! That is amazing to hear, thanks for the support!

  • @silkogelman
    @silkogelman 2 місяці тому +3

    Django Cotton looks very interesting, I'm definitely going to try it.
    Thank you Lyle and I love that you explain it in combination with Tailwind and HTMX.

    • @bugbytes3923
      @bugbytes3923  2 місяці тому

      @@silkogelman thanks a lot Sil, glad you liked the video and good to hear from you!

  • @yoskele8691
    @yoskele8691 2 місяці тому +3

    Amazing this helped me alot with HTMX with pagination Many many thanks!

    • @bugbytes3923
      @bugbytes3923  2 місяці тому

      @@yoskele8691 thanks a lot! Glad to hear it helped!

  • @mpicuser
    @mpicuser 2 місяці тому +3

    I'm in the front row. Thanks for this video!

  • @khunjohn1054
    @khunjohn1054 2 місяці тому +1

    I've been playing around with this package after you discovered it. I noticed that you didn't make the base.html a Cotton component itself. That way you can easily make the nav an additional component and swap or remove it, based on rights/apps/ etc. This package seems very promising and a big thanks for those working on it. Thanks for the great work getting these demos on YT.

    • @bugbytes3923
      @bugbytes3923  2 місяці тому

      @@khunjohn1054 interesting suggestion about base.html - thank you!

  • @eagleofsharm
    @eagleofsharm 2 місяці тому +1

    Great content as always BugBytes, Thank you.

  • @2011kamp
    @2011kamp 2 місяці тому +1

    Great learning, kindly extend to include dynamic search, thanks

    • @bugbytes3923
      @bugbytes3923  2 місяці тому +1

      Thank you - will try and add another to this soon!

    • @2011kamp
      @2011kamp 2 місяці тому

      @@bugbytes3923 Thank you

  • @awnion
    @awnion 2 місяці тому

    I love your accent 🥰

  • @eduardoconcepcion4899
    @eduardoconcepcion4899 2 місяці тому

    Thanks for the video.
    I would suggest to take a look at the package pytailwindcss-extra.

    • @bugbytes3923
      @bugbytes3923  2 місяці тому

      @@eduardoconcepcion4899 thank you, will do!

  • @David-eb8lh
    @David-eb8lh 2 місяці тому

    A great playlist

  • @BuzzNoodle33
    @BuzzNoodle33 2 місяці тому +1

    The package seems promising. I can see that there is a caching mechanism to boost performance. However, I am wondering how it holds up when numerous cotton components populate a single page. Does it significantly impact performance, or is it a negligible concern?
    Thanks for the video. Perfect as always. :)

    • @bugbytes3923
      @bugbytes3923  2 місяці тому +1

      @@BuzzNoodle33 thanks a lot! I’d be interested to explore the affect on performance when using a lot of components, perhaps one for a future video

  • @serychristianrenaud
    @serychristianrenaud 2 місяці тому +1

    thanks

    • @bugbytes3923
      @bugbytes3923  2 місяці тому

      @@serychristianrenaud thanks for watching!

  • @frameff9073
    @frameff9073 2 місяці тому +1

    good thank you

  • @tiepluudanh
    @tiepluudanh 9 днів тому

    Would it be possible to show more “production” ready way to use the packages. I do not really think that using CDN is recommended for development right?

  • @ale6au
    @ale6au 2 місяці тому

    Again some great content! Thanks a lot for all your work! Do you plan to do a similar video but using alpinejs for filtering? I'm having some issues to pass the data from alpinejs to django-cotton components, and I'd rather use alpinejs instead of htmx for my specific use case... Do you know if it's supposed to be possible/easy?

    • @wrabit1
      @wrabit1 Місяць тому

      It should be fine, I use mainly with alpine

    • @ale6au
      @ale6au Місяць тому

      @@wrabit1 Thanks for your answer. But I don't manage to understand how though. My first attempt is to use the alpine directive x-bind in the django-cotton definition, for instance : This is not working as the binding does not seem to be applied... Would you have an idea?

    • @wrabit1
      @wrabit1 Місяць тому

      ​@@ale6au inside your component, you should define {{ attrs }} where you want them to land.