Inserts a <button> entity into the document using the NST WUI style.
The following parameters are recognized:
JavaScript code for the "onclick" handler tag.
The value to (what shows up on the button label). If omitted, the user's browser will choose.
Optional title attribute to appear as a tooltip to the user when their mouse hovers over the button.
Optional set of attributes to apply to the button entity.
Example of using the macro:
@wuiButton("null;","Big Font Button","@toolTipAttr("My big font @jsdh("Button").","200")","@htmlAttr("style","font-size: 18pt;")")
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")
@wuiButton("null;","Big Font Button","@toolTipAttr("My big font @jsdh("Button").","200")","@htmlAttr("style","font-size: 18pt;")")
EOF
This macro is defined as:
<button@htmlAttr("class","wuiInputButton")@htmlAttr("onclick","@param(0)")@toolTipAttr("@param(2)")@param(3)>@param(1)</button>