Last active
December 13, 2015 18:48
-
-
Save demogar/4957791 to your computer and use it in GitHub Desktop.
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
// En components.js tienes algo asi: | |
exports.SexyButton = function(_title,_width) { | |
var args={ | |
title: _title, | |
width:_width?_width:'110dp' | |
}; | |
return Ti.UI.createButton(args); | |
} | |
// Y luego en tu archivo haces algo como: | |
var ui = require('components'); | |
var myButton = ui.SexyButton("My Title", "100px"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment