Rails

Sdílet
Vložit
  • čas přidán 8. 05. 2024
  • In the previous episode we added Search, Sort, and Pagination to a data table.
    Turbo Frames will help us make it work WITHOUT PAGE REFRESH!
    However we will have to solve some potential problems (page refresh, URL, update, redirects).
    Episode source code: github.com/corsego/147-datata...
    Based on this blogpost: blog.corsego.com/turbo-hotwir...
    0:00 initial state of data tables, search, pagination
    1:50 search without page refresh
    4:10 search as you type (without clicking submit)
    4:36 update URL as you search (turbo-action advance)
    5:25 autosubmit after selecting in a dropdown (without clicking submit)
    6:09 update URL as you sort
    6:55 break out of turbo frame
    9:22 clean up and summary

Komentáře • 10

  • @solembum
    @solembum Před 6 měsíci +2

    Thanks. All your videos are amazing!

    • @SupeRails
      @SupeRails  Před 6 měsíci

      you are most welcome 🤗

  • @volodymyrshabaldas6349
    @volodymyrshabaldas6349 Před 6 měsíci +1

    Awesome!
    Thanks a lot SuperRails 😉

    • @SupeRails
      @SupeRails  Před 6 měsíci

      thanks for your support ☺️

  • @remotronic
    @remotronic Před 6 měsíci +2

    Qualitatively

  • @silentcomposer5004
    @silentcomposer5004 Před 6 měsíci

    Thanks, you are awsome.
    Recently I try to make user login/register as a modal using hotwire, but i cant make it work, I was wondering if that topic could be a video.

  • @lawzhunkhing7855
    @lawzhunkhing7855 Před 4 měsíci +1

    Awesome implementation !!
    I'm wondering how about Inline Editing with TurboFrame on the table 🤔

    • @SupeRails
      @SupeRails  Před 4 měsíci

      I think you can do inline editing of each individual atteibute of a table (not a whole row); interesting question actually. In E98 I do cover inline editing- I think something like that can be applied in a table superails.com/posts/ruby-on-rails-98-inline-editing-attributes-with-hotwire

  • @ledockol
    @ledockol Před 6 měsíci +1

    Бездоганно!