<netui:html> Tag

Renders an <html> tag.

Syntax

<netui:html
    [dir="dir"]
    [documentType="documentType"]
    [runAtClient="runAtClient"]
    [scopeId="scopeId"]
    [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:

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

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

The id that is associated with the script methods.
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 getScopeId(tag) {
     if (tag == null) return "";
     if (tag.scopeId != null) return tag.scopeId;
         return getScopeId(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 = getScopeId(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 getScopeId(tag) {\n");
      results.append("\tif (tag == null) return \"\";\n");
      results.append("\tif (tag.scopeId != null) return tag.scopeId;\n");
      results.append("\treturn getScopeId(tag.parentElement);\n}\n\n");