hyTags
HomeHome DocumentationDocumentation

selection-set-scroll-x

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