Modal::setTitle

@param string $text
@param string $tagName
@param array  $attributes

@return static
422035
public function setTitle($text, $tagName = 'h5', array $attributes = [])
    {
        $this->dialog->content->header->tagName = $tagName;
        $this->dialog->content->header->textContent->push($text);

        if (count($this->attributes)) {
            foreach ($attributes as $name => $value) {
                $this->dialog->content->header->attributes->addAttribute($name, $value);
            }
        }

        return $this;
    }
816522
public function addTitleAddon($text, array $attributes = array())
    {
        $backlink_text                  = $this->_getConfigOrDefault('backlink_text');
        $backlink_attributes            = array();
        $backlink_attributes['title']   = '';

        // permalink links class
        $cfg_permalink_class            = $this->_getConfigOrDefault('permalink_class');
        if (isset($attributes['permalink_class'])) {
            $backlink_attributes['class'] = $attributes['permalink_class'];
            unset($attributes['permalink_class']);
        } else {
            $backlink_attributes['class'] = $cfg_permalink_class;
        }

        // toc backlink id
        $cfg_permalink_title            = $this->_getConfigOrDefault('permalink_mask_title');
        if (isset($attributes['id'])) {
            $backlink_attributes['href'] = '#'.$attributes['id'];

            if (isset($attributes['permalink_title'])) {
                $backlink_attributes['title'] .= $attributes['permalink_title'];
                unset($attributes['permalink_title']);

            } elseif (isset($attributes['permalink_mask_title'])) {
                $backlink_attributes['title'] .= str_replace('%%', '#'.$attributes['id'], $attributes['permalink_mask_title']);
                unset($attributes['permalink_mask_title']);

            } else {
                $backlink_attributes['title'] .= str_replace('%%', '#'.$attributes['id'], $cfg_permalink_title);
            }
        }

        // toc backlink id
        $cfg_toc_id                     = $this->_getConfigOrDefault('toc_id');
        $cfg_toc_title                  = $this->_getConfigOrDefault('toc_backlink_title');
        $cfg_backlink_onclick_mask      = $this->_getConfigOrDefault('backlink_onclick_mask');
        $cfg_permalink_title_separator  = $this->_getConfigOrDefault('permalink_title_separator');

        if (isset($attributes['permalink_title_separator'])) {
            $permalink_title_separator = $attributes['permalink_title_separator'];
            unset($attributes['permalink_title_separator']);
        } else {
            $permalink_title_separator = $cfg_permalink_title_separator;
        }

        if (isset($attributes['toc_id'])) {
            $toc_id = $attributes['toc_id'];
            unset($attributes['toc_id']);

            if (isset($attributes['toc_backlink_title'])) {
                $backlink_attributes['title'] .= $permalink_title_separator.$attributes['toc_backlink_title'];
                unset($attributes['toc_back_title']);
            } else {
                $backlink_attributes['title'] .= $permalink_title_separator.$cfg_toc_title;
            }

        } elseif (!empty($cfg_toc_id) && !empty($cfg_toc_title)) {
            $toc_id = $cfg_toc_id;
            $backlink_attributes['title'] .= $permalink_title_separator.$cfg_toc_title;
        }

        if (isset($attributes['backlink_onclick_mask'])) {
            $backlink_onclick_mask = $attributes['backlink_onclick_mask'];
            unset($attributes['backlink_onclick_mask']);
        } else {
            $backlink_onclick_mask = $cfg_backlink_onclick_mask;
        }
        $backlink_attributes['onclick'] = str_replace('%%', $toc_id, $backlink_onclick_mask);

        // add-on
        if (!empty($backlink_text) && !empty($backlink_attributes['title'])) {
            $text .= $this->buildTag('link', $backlink_text, $backlink_attributes);
        }

        return $text;
    }
279542
public function link($url, $title, $attributes = [])
    {
        $attributes['href'] = $url;
        $tag = new Tag('a', $attributes);
        $tag->setText($title);
        return $tag;
    }
767444
public function setTitle($title)
    {
        $t = $this->dom->getElementsByTagName('title')->item(0);
        if ($t == null) {
            $t = $this->dom->createElement('title');
            $this->getHeadNode()->appendChild($t);
        }
        $t->nodeValue = htmlspecialchars($title);
    }
1287725
public function setTitle($title)
	{
		$title = strip_tags($title);

		$this->title_session = $title;

		$this->title = $title . $this->getDefault('separator') . $this->getDefault('title');
	}
1373631
protected function see($text, $tag = 'body')
    {
        $this->assertContains($text, $this->getTextByTag($tag));

        return $this;
    }
889045
private function set_text($text)
    {
        if(!!$text)
        {
            if(!!$this->text)
            {
                if(!!is_array($this->text))
                {
                    $this->text[] = $text;
                }
                else
                {
                    $this->text = array($this->text,$text);
                }
            }
            else
            {
                $this->text = $text;
            }
        }

        return $this;
    }
242052
public function setText($text)
    {
        $this->entity->setEntityName($text);
        $this->textContent->push($text);

        return $this;
    }
225303
public function createLegend($text, array $attributes = [])
    {
        $node = new Fieldset\Legend($attributes);
        $node->entity->setEntityName('legend');
        $node->attributes->addAttribute('for', dash($text));

        $node->textContent->push($text);

        $this->childNodes->prepend($node);

        return $this->legend = $this->childNodes->first();
    }
134601
public static function heading(string $title, int $h = 1, array $attributes = null) : string
    {
        $output = '<h'.$h.Html::attributes($attributes).'>'.$title.'</h'.$h.'>';

        return $output;
    }
118310
public function td(string $text = '', array $attributes = []): void
    {
        $this->tdArray[] = Tags::td($text, $attributes);
    }
351508
protected function _setTitleAttr($title, array $options = [])
    {
        if (!Arr::key('title', $options)) {
            $options['title'] = strip_tags($title);
        }

        return $options;
    }
1229214
public static function link($url, $text, array $attributes = null) {
        $attributes = (array)$attributes;
        $attributes['href']  = $url;
        return self::tag('a', $text, $attributes);
    }
187795
public function createHeader($text, $tagName = 'h1', array $attributes = ['class' => 'display-3'])
    {
        $header = new Element($tagName, 'header-' . dash($text));
        $header->textContent->push($text);

        if (count($attributes)) {
            foreach ($attributes as $name => $value) {
                $header->attributes->addAttribute($name, $value);
            }
        }

        $this->childNodes->push($header);

        return $this->childNodes->last();
    }
132856
private function createLabel(string $text, string $name): Markup
    {
        return HtmlTag::createElement('label')
            ->set('for', $name)
            ->text($text);
    }
712967
def title_text(tag, parent_tag_name=None, p_parent_tag_name=None, direct_sibling_only=False):
    """"""
    title = None

    title_tag = title_tag_inspected(tag, parent_tag_name, p_parent_tag_name, direct_sibling_only)

    if title_tag:
        title = node_contents_str(title_tag)
    return title
789142
public function tag($tag, $content, array $attributes = [])
    {
        return $this->htmlBuilder->tag($tag, $content, $attributes);
    }