<< Click to Display Table of Contents >>

 

SWGContextMenu (pParentElem, posX, posY, bSelfDelete)

 

 

Description

The contex menu object

 

Position

Framework.js

 

 

Parameters

 

Parameter

Description

pParentElem

The DOM container object in which contex menu is built

posX

The X coordinate of origin's position of the context menu

posY

The Y coordinate of origin's position of the context menu

bSelfDelete

Whether to create the close button.

 

 

Properties

 

Property

Description

none

none

 

 

Methods

 

Method

Description

AddItem(txtItem, clickEvent)

To add item in the menu. The txtltem parameter is the string of menu and clickEvent is the function of the menu event.

DestroyMenu

To close and destroy the context menu.

 

 


©2015 Supergeo Technologies Inc.