This commit is contained in:
Dan Harrin
2026-07-17 12:25:20 +01:00
parent eeb84fc554
commit 607c9139a6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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.