hyTags
HomeHome DocumentationDocumentation

selection-is-last-child

Checks if the selected element is the last child of its parent.
Parameter
Type
Description
return
bool
True if last child, false otherwise
Test Case:Check if element is last child
    <div></div>
    
    <selection-is-last-child>
    <assert-true>
    
    👆 Try to change something!
  • Test succeeded Test failed