tooltip.settings.label

getTooltip(id).settings.label("text") (since beta 0.3)

Resets the text of the validation button.

Example:

[js highlight=”15″ try=”true”]newAudio(“sentence”, “test.mp3”)
.settings.disable()
.print()
.play()
,
newTooltip(“instruction”, “After the audio is done playing, you can replay it as many times as you want”, “Please wait”)
.settings.disable()
.print( getAudio(“sentence”) )
,
getAudio(“sentence”)
.wait()
.settings.enable()
,
getTooltip(“instruction”)
.settings.label(“OK”)
.settings.enable()
.wait()
[/js]

Adds a disabled interface to play the audio test.mp3 to the page, starts playing it immediately and attaches a disabled tooltip to its bottom-right corner, with its validation button reading Please wait. After the audio has finished playing, the interface is enabled (so the audio can be replayed at will) as well as the tooltip, whose validation button’s text gets changed for OK.