Table polling event/hook?

Hey, is there a event being emited or a Hook that we can attach some scripts when a table is polling?

The idea is when a new order with status new is present in the table to trigger a audio player sound;

How would that be implemented, I didnt found anything in the documentation in the Advanced Table section?
Solution
Its possible.

Just find a renderhook that is very close to the table and add
->poll(15)
to the table:

php FilamentView::registerRenderHook(
            PanelsRenderHook::RESOURCE_PAGES_LIST_RECORDS_TABLE_BEFORE,
            fn (): string => Blade::render(
                <<<'blade'
                    @php session(['rerender' => (session('rerender') + 1)]);    @endphp
                    <div>
                        RENDER BEFOER TABLEE {{ session('rerender') }}
                    </div>
                blade
            )
        );


Then you can add another hook to the body to render some static html or js code;
Was this page helpful?