hyTags
HomeHome DocumentationDocumentation

selection-insert-before

Inserts a fragment as siblings before the selected element.
Parameter
Type
Description
fragment
Fragment
Fragment to insert before the element
return
void
Void
Test Case:Prepend siblings before element
    <div></div>
    
    <fragment-from-string value="<span>sibling</span>">
    <selection-insert-before></selection-insert-before>
    
    👆 Try to change something!
  • Test succeeded Test failed