Lines Matching defs:tagAttributes

213     public static function renderExit(TagAttributes $tagAttributes, array $data)
218 $type = $tagAttributes->getType();
227 $tagAttributes->removeComponentAttributeIfPresent(WebCodeTag::RENDERING_MODE_ATTRIBUTE);
250 $tagAttributes->addComponentAttributeValue(MermaidTag::MARKUP_CONTENT_ATTRIBUTE, $mermaidCode);
251 return MermaidTag::renderEnter($tagAttributes);
267 $html = $tagAttributes->toHtmlEnterTag("div");
290 $tagAttributes->removeComponentAttribute(WebCodeTag::IFRAME_BOOLEAN_ATTRIBUTE);
292 if (!$tagAttributes->hasAttribute(TagAttributes::NAME_ATTRIBUTE)) {
293 $tagAttributes->addOutputAttributeValueIfNotEmpty(TagAttributes::NAME_ATTRIBUTE, "WebCode iFrame");
299 $tagAttributes->addOutputAttributeValue("src", $url);
304 return self::finishIframe($tagAttributes);
328 if ($tagAttributes->hasComponentAttribute(WebCodeTag::EXTERNAL_RESOURCES_ATTRIBUTE_KEY)) {
330 $resources = $tagAttributes->getValueAndRemove(WebCodeTag::EXTERNAL_RESOURCES_ATTRIBUTE_KEY);
389 $tagAttributes->addOutputAttributeValue("srcdoc", $iframeSrcValue);
395 $bar .= '<div class="webcode-bar-item">' . self::addJsFiddleButton($codes, $externalResources, $useConsole, $tagAttributes->getValue("name")) . '</div>';
398 return self::finishIframe($tagAttributes, $bar);
495 private static function finishIframe(TagAttributes $tagAttributes, string $bar = ""): string
503 $tagAttributes->addStyleDeclarationIfNotSet("width", "100%");
508 $frameBorder = $tagAttributes->getValueAndRemoveIfPresent(WebCodeTag::FRAMEBORDER_ATTRIBUTE);
510 $tagAttributes->addStyleDeclarationIfNotSet("border", "none");
513 $iFrameHtml = $tagAttributes->toHtmlEnterTag("iframe") . '</iframe>';