mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update 02-text.md
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user