src/Ease/Html/Tag.php
public function setTagID($tagID = null)
    {
        if (is_null($tagID)) {
            $this->setTagProperties(['id' => \Ease\Brick::randomString()]);
        } else {
            $this->setTagProperties(['id' => $tagID]);
        }

        return $this->getTagID();
    }
public function setTagID($tagID = null)
    {
        if (is_null($tagID)) {
            $this->setTagProperties(['id' => \Ease\Brick::randomString()]);
        } else {
            $this->setTagProperties(['id' => $tagID]);
        }

        return $this->getTagID();
    }
Nastaví tagu zadane id, nebo vygenerované náhodné.

@param string $tagID #ID html tagu pro JavaScript a Css

@return string nastavené ID