Skip to content

Commit

Permalink
add ->allowDescription() to TypeColumn to show description on tooltip…
Browse files Browse the repository at this point in the history
… & add ordering
  • Loading branch information
3x1io committed Sep 11, 2024
1 parent 3c14f01 commit 841718c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ use TomatoPHP\FilamentTypes\Components\TypeColumn;
TypeColumn::make('type')
->for('users')
->type('status')
->allowDescription()
->searchable(),
```

Expand Down
2 changes: 1 addition & 1 deletion src/Components/TypeColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 841718c

Please sign in to comment.