Created
April 11, 2012 13:45
-
-
Save timanrebel/2359385 to your computer and use it in GitHub Desktop.
Simple Ti.UI wrapper
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
createAlertDialog: function(config) { | |
return Ti.UI.createAlertDialog(config); | |
}, | |
createAnimation: function(config) { | |
return Ti.UI.createAnimation(config); | |
}, | |
createButton: function(config) { | |
if (config['style'] === undefined) | |
config['style'] = Ti.UI.iPhone.SystemButtonStyle.PLAIN; | |
config['selectionStyle'] = 0; | |
return Ti.UI.createButton(config); | |
}, | |
createButtonBar: function(config) { | |
return Ti.UI.createButtonBar(config); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment