We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ca00b3 commit 9f42f2aCopy full SHA for 9f42f2a
docs/datatable/configurable-areas.md
@@ -65,6 +65,23 @@ public function configure(): void
65
}
66
```
67
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
+```
85
86
## Example View
87
0 commit comments