Inserts a button into the WUI to show help for a specific NST script.
The following parameters are recognized:
The name of the script to display the help for.
Optional label to be displayed (defaults to script name if omitted).
Optional title attribute to appear as a tooltip to the user when their mouse hovers over the button.
Example of using the macro:
@wuiNstScriptButton("nstkismet")
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")
@wuiNstScriptButton("nstkismet")
EOF
This macro is defined as:
<form@htmlAttr("action","/nstwui/cgi-bin/system/script_help.cgi")> @wuiInputHidden("script","@param(0)") @wuiInputButton("show","@fnb("@param(1)","@param(0)")","@param(2)") </form>