new
fun <ELEMENT_TYPE : Element, RETURN_VALUE_TYPE> ELEMENT_TYPE.new(insertBefore: String? = null, receiver: ElementCreator<ELEMENT_TYPE>.(ELEMENT_TYPE) -> RETURN_VALUE_TYPE): RETURN_VALUE_TYPE(source)
A convenience wrapper around new which allows a nested DSL-style syntax
Parameters
position
What position among the parent's children should the new element have?
receiver
A code block in which any created elements will be children of this element.