Class for adding an item into a popup menu that triggers some Javascript code
package | Extensibility |
---|---|
api | |
since | 2.0 |
__construct(string $sUID, string $sLabel, string $sJSCode, array $aIncludeJSFiles)
string
The unique identifier of this menu in iTop... make sure you pass something unique enough
string
The display label of the menu (must be localized)
string
In case the menu consists in executing some havascript code inside the page, pass it here. If supplied $sURL ans $sTarget will be ignored
array
An array of file URLs to be included (once) to provide some JS libraries for the page.