Home
NexoPOS

RenderCrudTableFooterEvent

RenderCrudTableFooterEvent is dispatched from CRUD table pages. Modules can use it to inject table-specific footer content such as popups, scripts, or supporting views.

Where It Runs

This event is implemented in resources/views/pages/dashboard/crud/table.blade.php. NexoPOS creates an Output instance, lets the CRUD instance run getTableFooter() when that method exists, then dispatches RenderCrudTableFooterEvent with the output and the current CRUD instance.

Available Properties

  • $event->output: an App\\Classes\\Output instance used to append rendered footer content.
  • $event->instance: the current CRUD instance. Use it to target one CRUD table.

Listener Example

<?php

namespace Modules\MyModule\Listeners;

use App\Events\RenderCrudTableFooterEvent;
use Modules\MyModule\Crud\PrinterCrud;

class RenderCrudTableFooterEventListener
{
    public function handle( RenderCrudTableFooterEvent $event )
    {
        if ( $event->instance instanceof PrinterCrud ) {
            $event->output->addView( 'MyModule::printers.footer' );
        }
    }
}

Summary

  • Use this event for footer content that belongs to a CRUD table page.
  • Check $event->instance before injecting views for a specific CRUD.
  • CRUD classes can also expose getTableFooter() for table footer output.