-1

Just wondering if anyone had the need to edit and update data straight in a HTML table using Laravel?

I have built out all the "create" tables for various tasks, but would like the ability to alter the data straight on an "index" page.

There are various JS libraries out there, but I was wondering if anyone knows or has done this within Laravel?

any feedback would be much appreciated.

T J
  • 42,762
  • 13
  • 83
  • 138
patskot
  • 165
  • 2
  • 12

2 Answers2

0

Since Laravel is a server-side technology, you would probably want some sort of javascript library to achieve that functionality--unless you're willing to use forms that look like tables or tables with form elements inside them. You might also have some luck with contenteditable attributes and events. HTML doesn't have an editable form out of the box that automatically interacts with the backend (Laravel in your case).

It depends on what you want to use the tables for; if your tables have a lot of data, you might later want sorting or pagination and that's something javascript table libraries are useful for.

If your tables are simple or exist mainly for style purposes, you might be able to get away with not using javascript much or at all. It would be fairly unusual to go this route, though, and probably take a little longer to get a working prototype.

Community
  • 1
  • 1
AlexMA
  • 9,842
  • 7
  • 42
  • 64
0

I'm using Laravel Datatables for data display on Laravel 5.3. And thinking of extending it with this paid version of table editor. There's an extension for Datatables editor integration. Seems to be the best option for my project so far.

sr9yar
  • 4,850
  • 5
  • 53
  • 59