Skip to content

Commit 6cefa49

Browse files
committed
Implement JsProperty attribute
1 parent b1f1cd9 commit 6cefa49

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Component/ComponentViewModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
namespace Loki\Components\Component;
55

6+
use Loki\Components\Attribute\JsProperty;
67
use Loki\Components\Util\Block\GetElementId;
7-
use Loki\Components\Util\JsPropertyResolver;
88
use Magento\Framework\App\ObjectManager;
99
use Magento\Framework\View\Element\AbstractBlock;
1010
use Loki\Components\Filter\Filter;
@@ -55,6 +55,7 @@ public function getElementId(): string
5555
return ObjectManager::getInstance()->get(GetElementId::class)->execute($this->block);
5656
}
5757

58+
#[JsProperty(name: 'value')]
5859
public function getValue(): mixed
5960
{
6061
if (false === $this->getComponent()->hasRepository()) {

0 commit comments

Comments
 (0)