Difference between revisions of "cock.setDefault"

m (See also)
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Restores specified default layout, permanently erasing previously defined bindings.
 
Restores specified default layout, permanently erasing previously defined bindings.
== Synopsis ==
+
== Function ==
=== Function ===
+
=== Synopsis ===
 
<source lang="Lua">cock.setDefault ( self, default )</source>
 
<source lang="Lua">cock.setDefault ( self, default )</source>
 
=== Arguments ===
 
=== Arguments ===
 
{{param|table|self|An object to use.}}
 
{{param|table|self|An object to use.}}
{{param|string|default|Optional. One of the defaults created earlier. Will substitute with [[cock.fields|control.defaultLayout]] field if not provided.}}
+
{{param|string|default|Optional. One of the defaults created earlier. Will revert to [[Common Organization of Controls Kit Fields|control.defaultLayout]] field if not provided.}}
  
 
==See also==
 
==See also==
 
*[[cock.setControls]]
 
*[[cock.setControls]]
*[[cock.fields]]
+
*[[Common Organization of Controls Kit Fields]]
 
*[[parent::Common Organization of Controls Kit Manual]]
 
*[[parent::Common Organization of Controls Kit Manual]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 15:10, 2 September 2013

Restores specified default layout, permanently erasing previously defined bindings.

Function

Synopsis

cock.setDefault ( self, default )

Arguments

table self
An object to use.
string default
Optional. One of the defaults created earlier. Will revert to control.defaultLayout field if not provided.

See also