Skip to content

Commit

Permalink
fix designElement errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tanthammar committed Feb 26, 2022
1 parent e93c50f commit 8f4b9a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/DesignElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class DesignElement
public bool $dynamicComponent = false;

public string $label;
public null|string $labelW = null;
public null|string $fieldW = null;
public string $name;
public string $key;

Expand Down Expand Up @@ -77,4 +79,12 @@ public function colspan(int $cols): self
return $this;
}

public function setHtmlId(string $wireInstanceID): self
{
//applied in field-loop.php or Field::blade
//$_instance->id
$this->id = 'id' . md5($wireInstanceID . $this->key);
return $this;
}

}

0 comments on commit 8f4b9a8

Please sign in to comment.