Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:23

Class enchant.widget.ConfirmScene

Class Summary
Constructor Attributes Constructor Name and Description
 
enchant.widget.ConfirmScene(content, acceptName, cancelName)
Confirm scene.
Field Summary
Field Attributes Field Name and Description
<static>  
enchant.widget.ConfirmScene.onaccept
<static>  
enchant.widget.ConfirmScene.oncancel
Fields borrowed from class enchant.Group:
childNodes, firstChild, lastChild, originX, originY, rotation, scaleX, scaleY
Fields borrowed from class enchant.Node:
age, parentNode, scene, x, y

Method Summary

Methods borrowed from class enchant.Group:
addChild
insertBefore
removeChild
Methods borrowed from class enchant.Node:
moveBy
moveTo
Methods borrowed from class enchant.EventTarget:
addEventListener
clearEventListener
dispatchEvent
on
removeEventListener

Class Detail

enchant.widget.ConfirmScene(content, acceptName, cancelName)
Confirm scene. Interrupt other input, display selection screen.
    var confirm = new ConfirmScene('Okay?', 'OK', 'NO');
    confirm.callback = function(bool) {
       // true will return for accept, false will return for cancel.
    };
    // Processing for cancel and accept can be set separately.
    confirm.oncancel = function() {
    };
    confirm.onaccept = function() {
    };
Parameters:
{*} content
Content to display.
{String} acceptName
Label for agreement button.
{String} cancelName
Label for cancel button.

Field Detail

<static> enchant.widget.ConfirmScene.onaccept
<static> enchant.widget.ConfirmScene.oncancel