mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-19 02:04:55 +08:00
docs
This commit is contained in:
@@ -32,7 +32,7 @@ ImageEntry::make('header_image')
|
||||
->alt('Article header image')
|
||||
```
|
||||
|
||||
<UtilityInjection set="infolistEntries" version="4.x">As well as allowing a static value, the `alt()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters, including the `$state` of the current image, which is useful when the entry renders multiple images.</UtilityInjection>
|
||||
<UtilityInjection set="infolistEntries" version="5.x">As well as allowing a static value, the `alt()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters, including the `$state` of the current image, which is useful when the entry renders multiple images.</UtilityInjection>
|
||||
|
||||
If you do not set any alt text, the image is rendered with an empty `alt` attribute, which marks it as decorative for assistive technology.
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ ImageColumn::make('avatar')
|
||||
->alt('User avatar')
|
||||
```
|
||||
|
||||
<UtilityInjection set="tableColumns" version="4.x">As well as allowing a static value, the `alt()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters, including the `$state` of the current image.</UtilityInjection>
|
||||
<UtilityInjection set="tableColumns" version="5.x">As well as allowing a static value, the `alt()` method also accepts a function to dynamically calculate it. You can inject various utilities into the function as parameters, including the `$state` of the current image.</UtilityInjection>
|
||||
|
||||
If you do not set any alt text, the image is rendered with an empty `alt` attribute, which marks it as decorative for assistive technology.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user