Created
February 26, 2011 17:46
-
-
Save m92o/845420 to your computer and use it in GitHub Desktop.
Ti.UI.TextArea.keyboardToolbar is not displayed at modal window. (Titanium Mobile 1.6 / iOS SDK 4.2)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var window = Ti.UI.createWindow({ | |
modal: true, // If this line is deleted, keyboardToolbar is displayed. | |
title: 'window', | |
backgroundColor: '#fff' | |
}); | |
var trash = Ti.UI.createButton({ | |
systemButton: Ti.UI.iPhone.SystemButton.TRASH | |
}); | |
var textarea = Ti.UI.createTextArea({ | |
editable: true, | |
borderWidth: 1, | |
keyboardToolbar: [trash] | |
}); | |
window.add(textarea); | |
window.addEventListener('open', function () { | |
textarea.focus(); | |
}); | |
window.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment