Dynamically pass properties to @entangle directive

Hi, I know this isn't filament related, but I was wondering if there is a way to dynamically pass my properties to the @entangle directive?

x-data="range(@js($property))"


x-data="range(@js($property))"

minValue: @entangle($property . '.min'),
minValue: @entangle($property . '.min'),
Example properties:
public $height = ['min' => 120,...

public $height = ['min' => 120,...

&
public $waistWidth = ['min' => 60,...
public $waistWidth = ['min' => 60,...
Expected output:
minValue: @entangle('height.min'),
minValue: @entangle('waistWidth.min')
minValue: @entangle('height.min'),
minValue: @entangle('waistWidth.min')
The way I'm doing it now actually echoes out the correct values, but the binding seems to not work very well. Thanks in advanced!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server