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

Class enchant.widget.InputScene

Class Summary
Constructor Attributes Constructor Name and Description
 
enchant.widget.InputScene(content, acceptName, cancelName, placeholder)
Information.
Field Summary
Field Attributes Field Name and Description
<static>  
enchant.widget.InputScene.menu
<static>  
enchant.widget.InputScene.onaccept
<static>  
enchant.widget.InputScene.oncancel
<static>  
enchant.widget.InputScene.placeholder
<static>  
enchant.widget.InputScene.value
Level input into text area.
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.InputScene(content, acceptName, cancelName, placeholder)
Information. Interrupts other input and displays input screen. Unlike enchant.widget.PromptScene, you can input to multiple lines.
    var input = new InputScene('New Tweet', 'Tweet', 'Stop', '@twitter ');
    input.callback = function(text) {
        // Input array will be returned for accept, and null for cancel.
    };
    // Processing for cancel and accept can be set separately.
    input.oncancel = function() {
    };
    input.onaccept = function(text) {
    };
Parameters:
{*} content
Content to display.
{String} acceptName
Label for agreement button.
{String} cancelName
Label for cancel button.
{String} placeholder
Placeholder.

Field Detail

<static> enchant.widget.InputScene.menu
<static> enchant.widget.InputScene.onaccept
<static> enchant.widget.InputScene.oncancel
<static> enchant.widget.InputScene.placeholder
<static> enchant.widget.InputScene.value
Level input into text area.