@noteHeader(TYPE, ID, TEXT)

Displays standard NST header line within a notes section.

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.

Example of using the macro:

<div class="noteMessage">

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

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

@noteHeader("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>

</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")

<div class="noteMessage">

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

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

@noteHeader("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>

</div>

EOF

This macro is defined as:

@htmlEntity("@param(0)","@param(2)","@htmlAttr("id","@param(1)")@htmlAttr("class","noteHeader")")
@javascriptBegin()
NstDom.registerSection("@param(1)")
@javascriptEnd()