hyTags
HomeHome DocumentationDocumentation

selection-get-child-index

Gets the index of the selected element among its parent's children.
Parameter
Type
Description
return
number
Zero-based index of the element
Test Case:Get child index
    <div></div>
    
    <selection-get-child-index>
    <assert-equal value="0" type="number">
    
    👆 Try to change something!
  • Test succeeded Test failed