Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Atef95's avatar

Datatable alternatives

Hey artisans

Anyone here uses any datatable alternative ?

I tried server side rendering of datatable and it looks unclean especially that I had to write html markup in the controller for extra stuff like buttons...etc

0 likes
3 replies
jlrdw's avatar

I normally just use HTML tables with some JavaScript and a mix of Ajax as needed.

A little more work but once you done it a couple or three times you can kind of use what you have as a guide or template for other projects.

1 like
MichalOravec's avatar

You can use partials view there, for example

->editColumn('some-column', function ($item) {
    return view('partials.datatable.link', [
        'link' => route('some-route'),
        'text' => $iten->text
    ]);
})

View in views/partials/datatable/link.blade.php

<a href="{{ $link }}" target="{{ $target ?? '_self' }}">{{ $text }}</a>
1 like

Please or to participate in this conversation.