ArtiGrid
v1.7

One Page

The One Page mode displays the CRUD grid and add form side-by-side in a single view, eliminating the need for modals. Use setOnePagePosition() to control layout: 'left', 'right', 'top', or 'bottom'. Perfect for compact dashboards and quick data entry workflows.


<?php
    $grid = new ArtiGrid();
    $grid->table('payments')
        ->template('bootstrap5')
        ->required(false)
        ->formFields(['customerNumber','checkNumber','paymentDate', 'amount'])
        ->setOnePagePosition('left') // 'left', 'right', 'top', 'bottom'
        ->modal();
    echo $grid->render('onepage');
?>
paymentId customerNumber checkNumber paymentDate amount Actions