Sys.Component $create Method
This page is specific to:.NET Framework Version:
3.54
Sys.Component $create Method

Provides a shortcut to the create method of the Sys.Component class.

$create(type, properties, events, references, element);
Arguments

Parameter

Description

type

The type of the component to create.

properties

(Optional) A JSON object that describes the properties and their values.

events

(Optional) A JSON object that describes the events and their handlers.

references

(Optional) A JSON object that describes the properties that are references to other components.

element

(Optional) The DOM element that the component must be attached to.

Remarks

For details about the method that this shortcut represents, see Sys.Component.create Method.

NoteNote:

Do not call the $create shortcut method or the create method from the initialize method of another component. If you do, the new component will not initialize properly. Instead, create the new component and then pass it as a reference to the top component.

See Also

Tasks

Concepts

Reference

© 2010 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View