Display contents of a huge json row of a table as rows #2847
cromartie1984
started this conversation in
General
Replies: 4 comments
-
Are you trying to do something like this?
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes in a way, want to display huge json data from a table row and display it like it was a full table. |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can use addColumn and then return a view. You can form the json_table markup there. -- DT
->addColumn('intro', function(User $user) {
return view('json.table', compact('user'));
})
-- json/table.blade.php
@foreach($user->json_table as $row)
<tr id="{{ $row['id'] }}">
<td>{{ $row['key'] }}</td>
</tr>
@endforeach |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary of problem or feature request
Hi, I enjoy using your plugin, but is it possible to display contents of huge json (1000+ lines) row as multiple rows ?
Ex : My json row containing for instance :
"409": { "date": "2017-04-04 00:00:00", "name": "cook" }, "410": { "date": "2017-04-05 00:00:00", "name": "postman" }
Displaying this into multiple rows and filtering it with options.
<td id="409"></td><td id="410"></td>
It would require to implement something like JSON_TABLE.
All I have been able to found is this (but it does not seems to work) : https://stackoverflow.com/questions/59543251/what-is-the-equivalent-query-builder-expression-with-2-table-selects-in-laravel
System details
Beta Was this translation helpful? Give feedback.
All reactions