Skip to content

Instantly share code, notes, and snippets.

@QGao
Created April 18, 2013 17:48
Show Gist options
  • Save QGao/5414771 to your computer and use it in GitHub Desktop.
Save QGao/5414771 to your computer and use it in GitHub Desktop.
function addExpense(e){
Ti.API.info("addExpense is called");
alert("adding?");
}
var header = Alloy.createController("itemHeader", {
title:"Expenses",
count:"3",
addFunction: addExpense
});
$.headContainer.add(header.getView());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment