Difference between revisions of "cock.new"
m (→See also) |
m (→Returns) |
||
Line 8: | Line 8: | ||
=== Returns === | === Returns === | ||
− | {{param|table|control|Newly created control object}} | + | {{param|table|control|Newly created [[cock.control|control object]]}} |
+ | |||
==See also== | ==See also== | ||
*[[cock.delete]] | *[[cock.delete]] |
Revision as of 18:47, 31 August 2013
Creates a new control object.
Synopsis
Function
control = cock.new ( id, data )
Arguments
string id
- Optional. An identifier to use for this object. Generated automatically if not provided.
table data
- Optional. Specifically formated setup data to build layouts from. Will not instantly create layout if not provided.
Returns
table control
- Newly created control object
See also
- cock.delete
- cock.find
- Common Organization of Controls Kit Manual
- Common Organization of Controls Kit