mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
wip
This commit is contained in:
@@ -134,3 +134,13 @@ Alternatively, you may disable polling altogether:
|
||||
```php
|
||||
protected static ?string $pollingInterval = null;
|
||||
```
|
||||
|
||||
## Disabling lazy loading
|
||||
|
||||
By default, widgets are lazy loaded. This means that they will only be loaded when they are visible on the page.
|
||||
|
||||
To disable this behaviour, you may override the `$isLazy` property on the widget class:
|
||||
|
||||
```php
|
||||
protected static bool $isLazy = true;
|
||||
```
|
||||
|
||||
@@ -240,3 +240,13 @@ public function getDescription(): ?string
|
||||
return 'The number of blog posts published per month.';
|
||||
}
|
||||
```
|
||||
|
||||
## Disabling lazy loading
|
||||
|
||||
By default, widgets are lazy loaded. This means that they will only be loaded when they are visible on the page.
|
||||
|
||||
To disable this behaviour, you may override the `$isLazy` property on the widget class:
|
||||
|
||||
```php
|
||||
protected static bool $isLazy = true;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user