Skip to content

SvgElementInfo.prepend?

SvgElementInfo › prepend?

Official

Type: boolean

Whether to prepend the element to the parent. If true, the element will be inserted before the first child of the parent. If false or omitted, the element will be inserted after the last child of the parent.

Example:

createSvg('svg', { prepend: true });