Documentation

create

creates a new HTML element

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

Parameters

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

Returns

HTMLElementa newly-created HTML element

See also

Example

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

Back to top