new: [UI] Added JSON as valid index table field

pull/5226/head
iglocska 2019-09-26 10:30:18 +02:00
parent dc25176384
commit 6d6f6b9f75
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
<?php
$data = h(Hash::extract($row, $field['data_path']));
echo sprintf(
'<div style="white-space:pre;" class="blue bold">%s</div>',
json_encode($data, JSON_PRETTY_PRINT)
);
?>