Skip to content

Commit 3c4f7ee

Browse files
authored
Added setter for component state
1 parent 8b5b77c commit 3c4f7ee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Infinityloop/LazyComponent/LazyComponent.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ abstract class LazyComponent extends \Nette\Application\UI\Control
1010

1111
private bool $loaded = false;
1212

13+
public function setLoaded(bool $loaded = true) : void
14+
{
15+
$this->loaded = $loaded;
16+
}
17+
1318
public function handleLoadComponent() : void
1419
{
1520
$this->loaded = true;

0 commit comments

Comments
 (0)