getTooltip(id).settings.label("text") (since beta 0.3)
Resets the text of the validation button.
[js highlight=”15″ try=”true”]newAudio(“sentence”, “test.mp3”)
newTooltip(“instruction”, “After the audio is done playing, you can replay it as many times as you want”, “Please wait”)
.print( getAudio(“sentence”) )
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.