selector.settings.once

getSelector(id).settings.once()

Disables the selector after the first selection has happened.

Example:

[js highlight=”9″ try=”true”]
newImage(“square”, “square.png”)
,
newImage(“triangle”, “triangle.png”)
.settings.before( getImage(“square”) )
.print()
,
newSelector(“shapes”)
.settings.add( getImage(“square”) , getImage(“triangle”) )
.settings.once()
[/js]

Adds two images side by side and a button to click below them. Any selection is definitive: further clicks will not move the frame.