Skip to content

setWidth()

Set the object's width.

toggle.setWidth(width)

Parameters

toggle.setWidth(width)
Parameter Type Default Description
width int or float required The new width, in pixels.