
SWGContextMenu (pParentElem, posX, posY, bSelfDelete)
Description
公用快捷選單函式物件。
Position
Framework.js
Parameters
Parameter
|
Description
|
pParentElem
|
DOM容器物件,快捷選單將會建立於容器物件中。
|
posX
|
快捷選單原點所在位置的X坐標。
|
posY
|
快捷選單原點所在位置的Y坐標。
|
bSelfDelete
|
設定是否建立關閉按鈕。
|
Properties
Property
|
Description
|
none
|
none
|
Methods
Method
|
Description
|
AddItem(txtItem, clickEvent)
|
新增選單項目,參數txtItem為選單文字,clickEvent為選單事件函式。
|
DestroyMenu()
|
關閉並摧毀快捷選單。
|
©2015 Supergeo Technologies Inc.
|