extend
can.Control.extend( [staticProperties,] instanceProperties )
Create a new, extended, control constructor function.
Parameters
-
staticProperties
{Object}OptionalAn object of properties and methods that are added the control constructor function directly. The most common property to add is defaults.
-
instanceProperties
{Object}An object of properties and methods that belong to instances of the
can.Controlconstructor function. These properties are added to the control'sprototypeobject. Properties that look like event handlers (ex:"click"or"li mouseenter") are setup as event handlers.
Returns
{constructor(element, options) => can.Construct}
A control constructor function that has been
extended with the provided staticProperties and instanceProperties.
Examples