Difference between revisions of "Lua:createMenuItem"
Jump to navigation
Jump to search
(Created page with ''''function''' createMenuItem(''Owner'') ''':''' MenuItem Returns a newly created MenuItem that gets added to the owner. === Function Parameters === {|width="85%" cellpaddi…') |
m (moved createMenuItem to Lua:createMenuItem) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | '''function''' createMenuItem(''Owner'') ''':''' MenuItem | + | [[Category:Lua]] |
+ | '''function''' createMenuItem(''Owner'') ''':''' [[MenuItem]] | ||
Returns a newly created [[MenuItem]] that gets added to the owner. | Returns a newly created [[MenuItem]] that gets added to the owner. | ||
Line 10: | Line 11: | ||
|- | |- | ||
|Owner | |Owner | ||
− | |Menu or MenuItem based object | + | |[[Menu]] or [[MenuItem]] based object |
|The [[Menu]] or [[MenuItem]] of the new [[MenuItem]]. | |The [[Menu]] or [[MenuItem]] of the new [[MenuItem]]. | ||
|} | |} |
Latest revision as of 01:29, 25 January 2018
function createMenuItem(Owner) : MenuItem
Returns a newly created MenuItem that gets added to the owner.
Function Parameters[edit]
Parameter | Type | Description |
---|---|---|
Owner | Menu or MenuItem based object | The Menu or MenuItem of the new MenuItem. |