Inserts a checkbox into <form> area in NST WUI style.
The following parameters are recognized:
The name to assign to the checkbox.
Value to associate with NAME if user checks the checkbox.
What the user should see displayed next to the checkbox.
Specify "checked" if you want this checkbox button checked.
Optional title attribute to appear as a tooltip to the user when their mouse hovers over the checkbox.
Example of using the macro:
@wuiInputCheckbox("debug","true","Enable Debug Output","checked")
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")
@wuiInputCheckbox("debug","true","Enable Debug Output","checked")
EOF
This macro is defined as:
<input @wuiInputCheckboxAttr("@param(0)","@param(1)","@param(4)")@ifEqual("@param(3)","checked"," checked") />@param(2)