diff --git a/README.md b/README.md index 23036a9..606d79a 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,7 @@ use TomatoPHP\FilamentTypes\Components\TypeColumn; TypeColumn::make('type') ->for('users') ->type('status') +->allowDescription() ->searchable(), ``` diff --git a/src/Components/TypeColumn.php b/src/Components/TypeColumn.php index 6a7fd54..8b0cbb8 100644 --- a/src/Components/TypeColumn.php +++ b/src/Components/TypeColumn.php @@ -39,7 +39,7 @@ public function type(string|\Closure $type): static return $this; } - public function allowDescription(bool|\Closure $allowDescription): static + public function allowDescription(bool|\Closure $allowDescription=true): static { $this->allowDescription = $allowDescription; return $this;