backgroundGradient with Titanium Appcelerator and CoffeeScript
I'm developing my last project with Titanium appcelerator and coffeescript and I want to share some tips:
BackgroundGradient:
I didn't find useful documentation about how to apply a gradient to a button or a row and later I found it was really easy, here is an example:
class CitiesRow constructor: (@city) -> @row = Ti.UI.createTableViewRow hasChild: true city: city backgroundGradient: type:'linear' colors:[{color:'#494949',position:0.1},{color:'#3f3f3f',position:0.50},{color:'#2b2b2b',position:1.0}]













