Skip to content

Commit 12160c4

Browse files
authored
Update README.md
1 parent d1efd30 commit 12160c4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ namespace App\Filament\Widgets;
190190

191191
use App\Models\ProductCategory as ModelsProductCategory;
192192
use App\Filament\Widgets;
193+
use Filament\Forms\Components\TextInput;
193194
use SolutionForest\FilamentTree\Widgets\Tree as BaseWidget;
194195

195196
class ProductCategoryWidget extends BaseWidget
@@ -202,6 +203,13 @@ class ProductCategoryWidget extends BaseWidget
202203
protected ?string $treeTitle = 'ProductCategory';
203204

204205
protected bool $enableTreeTitle = true;
206+
207+
protected function getFormSchema(): array
208+
{
209+
return [
210+
TextInput::make('title'),
211+
];
212+
}
205213
}
206214
```
207215

0 commit comments

Comments
 (0)