From da123ec403c3d2367372c6933d48c4a9d45c51ca Mon Sep 17 00:00:00 2001 From: Matthieu Lempereur Date: Mon, 7 Apr 2025 13:49:57 +0200 Subject: [PATCH] doc: mention Table can be rendered from route --- docs/get-started/rendering-a-powergrid-table.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/get-started/rendering-a-powergrid-table.md b/docs/get-started/rendering-a-powergrid-table.md index fe53d84..47d65ad 100644 --- a/docs/get-started/rendering-a-powergrid-table.md +++ b/docs/get-started/rendering-a-powergrid-table.md @@ -47,6 +47,16 @@ For reference, the following example utilizes the class `app/Livewire/Tables/Dis // [!code ++] ``` +## From route + +If you do not need a Blade view, you can render your Table directly from route : + +```php +// routes/web.php + +Route::get('/dish', DishTable::class)->name('dish-table'); // [!code ++] +``` + ## Multiple Components Per Page To render more than one PowerGrid component on the same page, you must first assign a unique `TableName` to each component. Read more about [configuring table name](/table-component/component-configuration.html#table-name).