Prompt Bubble
fapnip edited this page Dec 9, 2020
·
2 revisions
Create and display a Prompt bubble
Example:
// Create and display new Prompt instance
new Say({
label:"<p>What's your name?</p>"
})
new Prompt({
onInput: function (value) {
new Say({
label:'<p>Hi ' + value + '!</p>'
})
}
})
Required Function. Called with value of prompt