<netui:html> Tag

Renders an <html> tag.

Syntax

<netui:html
    [dir="dir"]
    [documentType="documentType"]
    [generateIdScope="generateIdScope"]
    [idScope="idScope"]
    [useLocale="useLocale"] />

Description

Renders an <html> tag.

Attributes
dir
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable:

documentType
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable:

generateIdScope
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable:

idScope
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable:

useLocale
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable:


 
Example

In this sample, the <netui:html> tag uses the default locale and the direction of the HTML is left-to-right (LTR).

<netui:html dir="LTR" useLocale="true"  />

JavaScript

The <netui:html> tag writes out the following JavaScript functions:

 function getNetuiTagName(id) {
     return netui_names[id]; }

 function getNetuiTagName(id, tag) {
     if (scopeId == "")
         return netui_names[id];
     else
         return netui_names[portletId__id]; }

 function getIdScope(tag) {
     if (tag == null) return "";
     if (tag.scopeId != null) return tag.scopeId;
         return getIdScope(tag.parentElement); }

 results.append("\nfunction getNetuiTagName(id) {\n");
      results.append("\treturn ");
      results.append(NAMES_OBJECT);
      results.append("[id]; }\n\n");

      results.append("\nfunction getNetuiTagName(id, tag) {\n");
      results.append("\tvar scopeId = getIdScope(tag);\n");
      results.append("\tif (scopeId == \"\")\n");
      results.append("\t\treturn ");
      results.append(NAMES_OBJECT);
      results.append("[id];\n");
      results.append("\telse\n\t\treturn ");
      results.append(NAMES_OBJECT);
      results.append("[portletId + \"__\" + id]; }\n\n");

      results.append("\nfunction getIdScope(tag) {\n");
      results.append("\tif (tag == null) return \"\";\n");
      results.append("\tif (tag.scopeId != null) return tag.scopeId;\n");
      results.append("\treturn getIdScope(tag.parentElement);\n}\n\n");