create

creates a new HTML element

HTMLElement create(string name,object attrs, [string html] );

Parameters

namestringthe name of an HTML element
attrsobjectthe object with attributes
htmlstringthe inner HTML of a new element

Returns

HTMLElementa newly-created HTML element

Example

webix.html.create("div", { name:"myname" }, "Some content");

See also
Back to top