@bodyHeader(TYPE, ID, TEXT, [ATTRS])

Displays standard NST header line within the normal body area.

The following parameters are recognized:

TYPE

The header type (typically: "h1", "h2", or "h3").

ID

The value for the "id" attribute to associate with the header.

TEXT

The text for the heading.

[ATTRS]

Any extra attributes (but not in the "bodyHeader" class).

Example of using the macro:

@bodyHeader("h2","normal","Normal Header")

<div>
  <p>This block will not be hidable.</p>
</div>

@bodyHeader("h3","toggle","Hide/Show Header")

<div id="toggle-area" style="display: none;">
  <p>This block will not appear initially, but a open/close icon
will appear on the header line to permit the user to show/hide
this region. The key is that the header has the ID of "toggle"
for which a corresponding "toggle-area" exists.</p>
</div>

Assuming the com.ccg.macros.at.All class is within your CLASSPATH and the config/html.at macros file has been generated (Hint: run make atmacros in the wui directory), a developer should be able to run the above example by copy/pasting from below:

[root@probe root]# java com.ccg.macros.at.All <<EOF
@include("config/html.at",,"d")

@bodyHeader("h2","normal","Normal Header")

<div>
  <p>This block will not be hidable.</p>
</div>

@bodyHeader("h3","toggle","Hide/Show Header")

<div id="toggle-area" style="display: none;">
  <p>This block will not appear initially, but a open/close icon
will appear on the header line to permit the user to show/hide
this region. The key is that the header has the ID of "toggle"
for which a corresponding "toggle-area" exists.</p>
</div>


EOF

This macro is defined as:

@debug("6","@param(2)")@htmlEntity("@param(0)","@param(2)","@htmlAttr("id","@param(1)")@htmlAttr("class","bodyHeader")@param(3)")
@javascriptBegin()
NstDom.registerSection("@param(1)");
@javascriptEnd()