ArtiGrid
v1.5

Mode View Form


<?php
    $grid = new ArtiGrid();
    $view = "<div class='table-responsive'>
        <table class='table table-bordered table-striped table-sm mb-3'>
            <tbody>
                <tr>
                    <th>PaymentId</th>
                    <td>{paymentId}</td>
                </tr>
                <tr>
                    <th>CustomerNumber</th>
                    <td>{customerNumber}</td>
                </tr>
            </tbody>
        </table>
    </div>";
    $grid->table('payments')
        ->setViewFormTemplate($view) // custom view template
        ->template('bootstrap5');
    echo $grid->render('view', 21);
?>
PaymentId 21
CustomerNumber 4201