@nstFileMgrButton(PATH, [SHOW], [ATTRS])

Embed an NST File Manager access reference for file or directory as a button.

The following parameters are recognized:

PATH

The full path to either a file or directory for NST File Manager access.

[SHOW]

Actual access name to display (defaults to PATH).

[ATTRS]

Optional set of attributes to apply to input entity.

This macro is used to provide access to the NST File Manager as a button for a file or directory on an NST WUI page.

Example of using the macro:

      @nstFileMgrButton("/etc/hosts","View Hosts","@htmlAttr("style","width: 100%")")
    

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

      @nstFileMgrButton("/etc/hosts","View Hosts","@htmlAttr("style","width: 100%")")
    
EOF

This macro is defined as:

@javascriptButton("Stat.toggleStatInfo(this, event, '@param(0)'@ifEqual("@param(1)",,,", '@param(1)'"));","@fnb("@param(1)","@param(0)")",,"@htmlAttr("onmouseover","Stat.showToolTip(this, event, '@param(0)')")@param(2)")