Skip to content

Instantly share code, notes, and snippets.

@grantges
grantges / index.js
Created March 18, 2015 15:36
A simple example of how to create a basic Widget using Appcelerator Titanium SDK and Alloy. This widget shows how you can create a cross platform view and external interfaces for programmatically setting properties of the widget.
/**
* UnComment Out this Code to change the properties of your square
$.square.setBackgroundColor("blue");
$.square.setHeight(200);
$.square.setWidth(200)
*/