ArtiGrid
Modal Template
This demo shows how to customize the modal layout used by ArtiGrid. You can define your own HTML structure and style it using Bootstrap classes.
The template supports dynamic placeholders such as {title},
{close}, and {body}, allowing you to control
the modal header, close button, and content while keeping ArtiGrid's
built-in functionality.
<?php
$grid = new ArtiGrid();
$modal = '
<div class="modal-header bg-primary text-white">
<h5 class="modal-title">Iniciar {title}</h5>
{close}
</div>
{body}';
$grid->table('employees')
->template('bootstrap5')
->modal()
->setModalTemplate($modal);
echo $grid->render();
?>