Skip to content

Commit 9f42f2a

Browse files
committed
Update docs
1 parent 8ca00b3 commit 9f42f2a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/datatable/configurable-areas.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,23 @@ public function configure(): void
6565
}
6666
```
6767

68+
## Passing Parameters
69+
70+
You can pass parameters to configurable areas that come from your mount method or any other service by proving an array:
71+
72+
```php
73+
public function configure(): void
74+
{
75+
$this->setConfigurableAreas([
76+
'toolbar-left-start' => [
77+
'path.to.my.view', [
78+
'param1' => $this->user_id,
79+
'param2' => resolve(MyService::class)->getThing($this->user_id),
80+
],
81+
],
82+
]);
83+
}
84+
```
6885

6986
## Example View
7087

0 commit comments

Comments
 (0)