Skip to content

Commit 8f4b9a8

Browse files
committed
fix designElement errors
1 parent e93c50f commit 8f4b9a8

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/DesignElement.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class DesignElement
2121
public bool $dynamicComponent = false;
2222

2323
public string $label;
24+
public null|string $labelW = null;
25+
public null|string $fieldW = null;
2426
public string $name;
2527
public string $key;
2628

@@ -77,4 +79,12 @@ public function colspan(int $cols): self
7779
return $this;
7880
}
7981

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+
8090
}

0 commit comments

Comments
 (0)