@toolTipAttr([TITLE], [WIDTH])

Inserts optional tooltip attribute for a entity.

The following parameters are recognized:

[TITLE]

Replace the "title" attribute with a completely new "domTT_activate()" javascript function. This can be done using the "@toolTipAttr()" macro or a customized "domTT_activate()" function using: "@htmlAttr("onmouseover","domTT_activate(this, event, 'content', 'Title text.', 'width', 330, 'id', 'CustomExample', 'trail', true, 'fade', 'both', 'fadeMax', 87);")".

[WIDTH]

Optional width in "pixels" for the tooltip (defaults to "400" if omitted).

Example of using the macro:

      <span @toolTipAttr("My tooltip!","150")>My Text</span>
    

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

      <span @toolTipAttr("My tooltip!","150")>My Text</span>
    
EOF

This macro is defined as:

@ifEqual("@param(0)","","","@ifEqual("@indexOf("domTT_activate","@param(0)")","-1","@htmlAttr("onmouseover","domTT_activate(this, event, 'content', '@param(0)', 'width', @fnb("@param(1)","400"));")","@param(0)")")