Sidebar

iTop Customization

"How to" examples
DataModel

User Interface

Automation & Ticket management

Portal Customization

You are browsing the documentation for iTop 3.1 which is not the current version.

Consider browsing to iTop 3.2 documentation

🔙 Back

JSPopupMenuItem

api

Class for adding an item into a popup menu that triggers some Javascript code

Note: This works only in the backoffice, \JSButtonItem for the end-user portal

parent

Tags

since 2.0

API synthesis

List of the public API methods. When manipulating JSPopupMenuItem, You can call those methods:

  • __construct() — Class for adding an item that triggers some Javascript code

Public methods

__construct

api public

Class for adding an item that triggers some Javascript code
public __construct($sUID, $sLabel, $sJSCode, $aIncludeJSFiles = array())

Parameters

types name default description
string $sUID The unique identifier of this menu in iTop… make sure you pass something unique enough
string $sLabel The display label of the menu (must be localized)
string $sJSCode 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 $aIncludeJSFiles array() An array of file URLs to be included (once) to provide some JS libraries for the page.

🔙 Back

3_1_0/customization/api/extensions/jspopupmenuitem.txt · Last modified: 2023/07/21 10:19 by 127.0.0.1
Back to top
Contact us