mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Update 02-text.md
Update `$entry` to `$component` for injection example.
This commit is contained in:
@@ -100,10 +100,10 @@ use Filament\Infolists\Components\TextEntry;
|
||||
|
||||
TextEntry::make('description')
|
||||
->limit(50)
|
||||
->tooltip(function (TextEntry $entry): ?string {
|
||||
$state = $entry->getState();
|
||||
->tooltip(function (TextEntry $component): ?string {
|
||||
$state = $component->getState();
|
||||
|
||||
if (strlen($state) <= $entry->getCharacterLimit()) {
|
||||
if (strlen($state) <= $component->getCharacterLimit()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user