standard.before

description

Adds some content to the left of the element.

syntax

getX(ELEMENT_NAME).before(getElement(id))

What does getX() mean?

  • getElement(id) :

example(s)


@
@newImage("bad", "no.png")
@,
@newImage("good", "ya.png")
@,
@newText("left label", "Bad")
$    .before( getImage("bad") )
@,
@newText("right label", "Good")
@    .after( getImage("good") )
@,
@newScale("judgment", 5)
$    .before( getText("left label") )
@    .after( getText("right label") )
@    .print()
@    .wait()
  • 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.