hyTags
HomeHome DocumentationDocumentation

selection-set-scroll-y

Sets the vertical scroll position of the selected element.
Parameter
Type
Description
value
Number
Vertical scroll position in pixels
return
number
The new vertical scroll position
Test Case:Set vertical scroll position
    <div></div>
    
    <selection-set-scroll-y value="100">
    <selection-get-scroll-y>
    <assert-equal value="0" type="number">
    
    👆 Try to change something!
  • Test succeeded Test failed