Skip to main content

Home > blockly > ScrollbarPair > setX

ScrollbarPair.setX() method

Set the handle of the horizontal scrollbar to be at a certain position in CSS pixels relative to its parents.

Signature:

setX(x: number): void;

Parameters

ParameterTypeDescription
xnumberHorizontal scroll value.

Returns:

void