Skip to content

Commit 8f8f2a5

Browse files
committed
5.7: Auto-refreshing field layout elements!
1 parent 8c020db commit 8f8f2a5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/5.x/extend/field-layout-element-types.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,14 @@ protected function useFieldset(): bool
351351
return true;
352352
}
353353
```
354+
355+
#### Refresh Behavior <Since ver="5.7.0" feature="Refreshable field layout elements" />
356+
357+
By default, field layout elements are only rendered when the form is initially loaded, or when their visibility changes (due to a user or element condition being satisfied). To refresh it after every auto-save, implement the `alwaysRefresh()` method:
358+
359+
```php
360+
protected function alwaysRefresh(): bool
361+
{
362+
return true;
363+
}
364+
```

0 commit comments

Comments
 (0)