Laravel Splade - Table Component (DataTables auto-fill, search, sorting, pagination, and more!)

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • Splade has an advanced Table component that supports auto-fill, searching, filtering, sorting, toggling columns, and pagination. It's fully integrated and doesn't require any additional dependencies. Though optional, it integrates beautifully with Spatie's Laravel Query Builder.
    0:00 Introduction
    0:38 Users table
    1:54 Pagination
    2:25 Sorting
    4:39 Search Inputs
    5:31 Global Search
    6:49 Toggle Columns
    7:15 Select Filters
    8:22 Clickable Rows
    9:25 Custom Cells
    10:50 Striped Layout
    11:00 End
    ➡️ Website: splade.dev/
    ➡️ Sponsor page: github.com/sponsors/pascalbaljet
    ➡️ Twitter: / pascalbaljet
    ➡️ GitHub: github.com/protonemedia
  • Věda a technologie

Komentáře • 75

  • @vickoalan
    @vickoalan Před rokem +5

    please we want more videos about splade, && we hope Laravel team Support that package

  • @rosolovsky
    @rosolovsky Před rokem +3

    Great! Nice alternative for livewire-powergrid!

  • @Samuel.Mwangi
    @Samuel.Mwangi Před rokem +3

    Great work. Kudos 👏 👏

  • @goaldaybranch7201
    @goaldaybranch7201 Před rokem +2

    Thank you for this excellent explanation.

  • @DamirGrgic
    @DamirGrgic Před rokem +2

    Awesome! Finally someone worth to be sponsored.

  • @erpethiopia
    @erpethiopia Před rokem +2

    great work!

  • @HafizurRahman-uc1ny
    @HafizurRahman-uc1ny Před rokem +1

    Great Work👏👏👏

  • @Viveksharmaa
    @Viveksharmaa Před rokem +1

    Wow! Pascal
    Amazing work.

  • @jingoo01
    @jingoo01 Před rokem +1

    This is awesome! I like to use laravel and blade but feel like I have to move on to SPA. You make me stay with my old friends. Thx.

  • @online.development
    @online.development Před rokem +2

    This is terrific 🤩🤩

  • @gdogmalone
    @gdogmalone Před rokem +1

    My god this is good. Makes me want to rebuild some of my apps from scratch. Thanks for your great work @pascal

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

    After one watch, I'm considering moving to using this and replacing live wire. Its out of the box functions are amazing

  • @coding_david
    @coding_david Před rokem +2

    Amazing!

  • @tukurhamid
    @tukurhamid Před rokem

    You're amazing! Thanks man ✌

  • @farsicode
    @farsicode Před 7 měsíci

    That's a miracle!

  • @davidson7838
    @davidson7838 Před rokem +2

    Awesome work, I really liked this, hope you will add print feature and repeat field as well in future updates.

    • @PascalBaljet
      @PascalBaljet  Před rokem +2

      Thanks! What do you mean by 'repeat field'?

    • @ush6939
      @ush6939 Před rokem +2

      @@PascalBaljet i think he means a repeater, like in an invoice you need to have a repeater field for items

  • @_HMCB_
    @_HMCB_ Před rokem +1

    Epic!

  • @rhinni
    @rhinni Před rokem +1

    Cool!

  • @leonardBeni
    @leonardBeni Před rokem

    i've been playing with your package... it's more intuitive than Livewire (i've used livewire and inertia for quite a while)... you've build wonderful package, it has something livewire that lack of.. one thing for a note, the only thing that i'm waiting for is the flexibility of defining filters on table (range filter, input search that combineable each other) or if we can directly create custom query directly from request inside Table class... i would leave livewire right away.. thanks for your awesome package

  • @alessandroscimone5463

    Great!!

  • @agamgusriyandi4234
    @agamgusriyandi4234 Před rokem

    I like this, making the code so cool, please also make a template admin tutorial, always healthy teachers

  • @MauriceWagura
    @MauriceWagura Před rokem +1

    also, date range filtering, can you guide on how to achieve that? this is great work.

  • @sahnb
    @sahnb Před rokem +2

    ​ @Pascal Baljet ,if you consider following feature Excel , & PDF Export etc. ... or add role permission package in your stubs and one more thing slug's generator, I am sure it will become super-duper package, by the way your work is so impressive and outstanding. and your personality too. 😍

    • @PascalBaljet
      @PascalBaljet  Před rokem +1

      Thanks! Exports are supported as of v0.6. I don’t want the starter kit too be to opinionated, as it’s basically a default fresh Laravel app.

    • @sahnb
      @sahnb Před rokem +3

      I already explored V0.6, Excellent and much needed feature. you are great man. You make life much easier for Laravel developers.
      A developer like me, 3 forms of superlative
      Easy(Taylor Otwell), Easier(Povilos Korop,Laravel Daily) and Easiest(​ @Pascal Baljet , Splade)

    • @PascalBaljet
      @PascalBaljet  Před rokem +1

      @@sahnb Thanks, Arslan! That's very kind :)

  • @alnahian2003
    @alnahian2003 Před rokem

    Impressive as always ✨
    The only thing I'm worrying about is the bloated controller 😢 Maybe we can move some of the code to Service or Action class.

  • @cabanelas
    @cabanelas Před rokem +4

    Really great, this feature. Do you have a planned date for the Form component to be released?

  • @francosimonini7103
    @francosimonini7103 Před 10 měsíci +1

    Is possibile ti set the search input to autocomplete off?

  • @sincead
    @sincead Před rokem

    @PascalBalhet is it possible to adjust the column width?

  • @berthojoris
    @berthojoris Před rokem +1

    I love your package.... ^_^ Many Thanks @PascalBaljet

  • @FunctionalHippie
    @FunctionalHippie Před 24 dny

    Thank you for these great tutorials and Splade itself! This has been my best effort at creating a fully functioning data table! How can I change the row heights, conditional row styles, and column widths in a Splade table? I have a large data set and some fields are comments that can be very long and I want to constrain the rows to like 20px and have some control over locking in the widths of some columns too. And finally, is it possible to do inline editing in the table itself?

  • @MauriceWagura
    @MauriceWagura Před rokem +2

    Can you add a way for selecting rows (with the option to select all, i.e. those on the other pages)? And then add an action right next to the eye icon for sending the selected ids to an endpoint?

    • @PascalBaljet
      @PascalBaljet  Před rokem +1

      Bulk Actions are supported as of v0.6 🎉

  • @essajmahmood
    @essajmahmood Před rokem

    is there any way to change the table designe i well give it a try there are some thing that need work

  • @umairsaeed5925
    @umairsaeed5925 Před rokem

    Great work I have one question If my number of columns is 10 would there is any option for collapsible like datatable?

  • @autopop9679
    @autopop9679 Před rokem

    How do you get a numeric (decimal) column formatted e.g. to have comma separators, 2 decimal places and still sum up?

  • @ush6939
    @ush6939 Před rokem +1

    Greaet work man, really awesome! can you extract the table component into a single package that i can use in my normal laravel project ? or it needs to live inside splade's ecosystem?

    • @PascalBaljet
      @PascalBaljet  Před rokem +1

      This component uses Splade's SPA features to prevent full-page requests. Last year I built an Inertia-version of the Table component, but there's no regular Blade version.

    • @ush6939
      @ush6939 Před rokem

      @@PascalBaljet any link to the intertia-version ?

    • @PascalBaljet
      @PascalBaljet  Před rokem

      @@ush6939 github.com/protonemedia/inertiajs-tables-laravel-query-builder

  • @hidayatlahabu3345
    @hidayatlahabu3345 Před 11 měsíci

    I can't sort my table after update so latest splade version, maybe there is some sugestion to fix it ?

  • @medoune89
    @medoune89 Před rokem

    Hi sir,
    Can we use DB::table with splade ?

  • @commie563
    @commie563 Před rokem

    Muscline urge to rewrite my entire app using splade.

  • @RheaVlog
    @RheaVlog Před rokem

    can anyone help me, how to add `number` column with auto increment number for every data including in `search mode` with splade table?

  • @collinrobinson1294
    @collinrobinson1294 Před rokem

    Need some more videos

  • @ratopationline
    @ratopationline Před rokem

    it is possoble to use my custom dashboard ??

  • @sazzadhussain
    @sazzadhussain Před rokem

    How to hide eye icon button?

  • @rosolovsky
    @rosolovsky Před rokem +1

    Is it possible to integrate modals to create CRUD app?

    • @PascalBaljet
      @PascalBaljet  Před rokem +1

      Yes, you can open modals/slideover from the Table (for example, to edit a user). I'll keep this in mind to show in the next blog/example!

  • @labkita
    @labkita Před rokem

    maybe you can show how to add delete action and example what if there is relational data, how to show it

  • @tsutsumu3004
    @tsutsumu3004 Před rokem

    if table will be empty how show message in place of rows for example, no such rows were found?

    • @sincead
      @sincead Před rokem

      I have created a small PR with this feature I hope Pascal will consider it

  • @aymanibrahimyousif364

    thank you for this toutrials and awesome package
    i,m allready begin use splade but when try to disblay post image in table is not working
    i tried many ways
    so if you have way please publish it and thank you again..

  • @BudiYunior
    @BudiYunior Před rokem

    how to make custom table using splade?

  • @mohammadkahfi4809
    @mohammadkahfi4809 Před 7 měsíci

    please add feature date range filter in data table

  • @latlov
    @latlov Před rokem

    Try Laravel Filament tables.

  • @irfanfathurr
    @irfanfathurr Před rokem +1

    Cool, but I tried per page result changed to 30, 50 per page didn't work/change

    • @PascalBaljet
      @PascalBaljet  Před rokem

      Did you use the query item from the request?
      $builder->paginate(request()->query('perPage', 15))

    • @irfanfathurr
      @irfanfathurr Před rokem +1

      @@PascalBaljet No I didn't, I follow your tutorial in this video, but per page not working

    • @gotoslovakia
      @gotoslovakia Před rokem

      @@PascalBaljet you also must add ->withQueryString() to not reset the perPage param by clicking to page links

  • @ShakeelAhmed-jk7cn
    @ShakeelAhmed-jk7cn Před rokem +1

    it will better if this table work something like Livewrie Powergrid,
    if we use that Package, we no need to write anything in the Controller, Code only in 1 livewire file, and that's all. also can stub for own choice, this plugin is also greate and have lot's of features.

    • @DamirGrgic
      @DamirGrgic Před rokem +4

      it's perfect how Pascal made it. You still works with Controllers and Views.

    • @ShakeelAhmed-jk7cn
      @ShakeelAhmed-jk7cn Před rokem +2

      ​@@DamirGrgic Ofcourse i love how Pascal made it. im waiting more new useful packages from @Pascal

    • @PascalBaljet
      @PascalBaljet  Před rokem +1

      @@ShakeelAhmed-jk7cn Anything in particular you're waiting for?