You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Demo site : https://filament-cms-website-demo.solutionforest.net/
13
+
14
+
Demo username : demo@solutionforest.net
15
+
16
+
Demo password : 12345678 Auto Reset every hour.
12
17
## Installation
13
18
14
19
You can install the package via composer:
@@ -57,13 +62,44 @@ class DummyTabs extends BaseWidget
57
62
58
63
Tabs may have an icon and badge, which you can set using the `icon()` and `badge()` methods:
59
64
```php
60
-
Tab::make('Label 1')
61
-
->icon('heroicon-o-bell')
62
-
->badge('39')
63
-
->schema([
64
-
// ...
65
-
]),
65
+
Tab::make('Label 1')
66
+
->icon('heroicon-o-bell')
67
+
->badge('39')
68
+
->schema([
69
+
// ...
70
+
]),
71
+
```
72
+
73
+
## Assign parameters to component
74
+
Additionally, you have the option to pass an array of data to your component.
75
+
> **Tip: Ensure that the index or key of the `schemaComponentData` array matches the component's index or key. This is important for proper rendering and functioning of the component. !!!**
76
+
```php
77
+
protected function schema(): array
78
+
{
79
+
return [
80
+
81
+
// SAMPLE CODE, CAN DELETE
82
+
TabLayoutTab::make('Label 1')
83
+
->icon('heroicon-o-bell')
84
+
->badge('39')
85
+
->schema([
86
+
new \Filament\Widgets\AccountWidget,
87
+
new \App\Filament\Resources\ProductCategoryResource\Pages\ViewProductCategory() // TARGET COMPONENT
0 commit comments