Skip to content

Commit e8fb4ac

Browse files
Merge pull request #131 from MrYamous/render-from-route
Mention Table can be rendered from route
2 parents a727112 + da123ec commit e8fb4ac

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/get-started/rendering-a-powergrid-table.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ For reference, the following example utilizes the class `app/Livewire/Tables/Dis
4747
<livewire:tables.dish-table /> // [!code ++]
4848
```
4949

50+
## From route
51+
52+
If you do not need a Blade view, you can render your Table directly from route :
53+
54+
```php
55+
// routes/web.php
56+
57+
Route::get('/dish', DishTable::class)->name('dish-table'); // [!code ++]
58+
```
59+
5060
## Multiple Components Per Page
5161

5262
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).

0 commit comments

Comments
 (0)