We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e93c50f commit 8f4b9a8Copy full SHA for 8f4b9a8
src/DesignElement.php
@@ -21,6 +21,8 @@ class DesignElement
21
public bool $dynamicComponent = false;
22
23
public string $label;
24
+ public null|string $labelW = null;
25
+ public null|string $fieldW = null;
26
public string $name;
27
public string $key;
28
@@ -77,4 +79,12 @@ public function colspan(int $cols): self
77
79
return $this;
78
80
}
81
82
+ public function setHtmlId(string $wireInstanceID): self
83
+ {
84
+ //applied in field-loop.php or Field::blade
85
+ //$_instance->id
86
+ $this->id = 'id' . md5($wireInstanceID . $this->key);
87
+ return $this;
88
+ }
89
+
90
0 commit comments