From 841718cabaa09bfc9972b5f2538419b81608ad50 Mon Sep 17 00:00:00 2001 From: Fady Mondy Date: Wed, 11 Sep 2024 13:45:52 +0300 Subject: [PATCH] add ->allowDescription() to TypeColumn to show description on tooltip & add ordering --- README.md | 1 + src/Components/TypeColumn.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;