Clear Up
SharpKit Reference

Component.create Method (Type, JsObject, JsObject, JsObject, HtmlElement)

Returns a new instance of the class that uses the specified parameters and calls the method.

Namespace: Sys

Class: Component

Syntax

public static Component create(Type type, JsObject properties, JsObject events, JsObject references, HtmlElement element)

Parameters

type
Type: System.Type
The type of the component to create.
properties
Type: SharpKit.JavaScript.JsObject
A JSON object that describes the properties and their values.
events
Type: SharpKit.JavaScript.JsObject
A JSON object that describes the events and their handlers.
references
Type: SharpKit.JavaScript.JsObject
A JSON object that describes the properties that are references to other components.
element
Type: SharpKit.Html4.HtmlElement
The DOM element the component must be attached to.

Return Value

Type: Sys.Component
A new instance of the Component class that uses the specified parameters.
© Copyright 2005-2011 SharpKit. All rights reserved.