create

creates a new HTML element

HTMLElement create(string name,object attrs, [string html] );
namestringthe name of an HTML element
attrsobjectthe object with attributes
htmlstringthe inner HTML of a new element
HTMLElementa newly-created HTML element

Example

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

See also
Back to top