standard.settings.before

or getElement(id).settings.before( getElement(id) )

Adds some content to the left of the element.

Example:

[js highlight=”6,12″ try=”true”]
newImage(“bad”, “no.png”)
,
newImage(“good”, “ya.png”)
,
newText(“left label”, “Bad”)
.settings.before( getImage(“bad”) )
,
newText(“right label”, “Good”)
.settings.after( getImage(“good”) )
,
newScale(“judgment”, 5)
.settings.before( getText(“left label”) )
.settings.after( getText(“right label”) )
.print()
.wait()
[/js]

Creates two image and two text elements and prints a 5-point radio-button scale, with the text Bad preceded by the image no.png on its left, and the text Good followed by the image ya.png on its right.