Update 02-text.md

This commit is contained in:
Ben
2024-07-22 15:35:09 +01:00
committed by GitHub
parent 701a316e91
commit 0b7bcf4072
@@ -56,6 +56,16 @@ TextEntry::make('created_at')
->since()
```
Additionally, you can use the `dateTooltip()`, `dateTimeTooltip()` or `timeTooltip()` method to display a formatted date in a tooltip, often to provide extra information:
```php
use Filament\Infolists\Components\TextEntry;
TextEntry::make('created_at')
->since()
->dateTimeTooltip()
```
## Number formatting
The `numeric()` method allows you to format an entry as a number: