Skip to content

Instantly share code, notes, and snippets.

@easylogic
Created October 30, 2011 15:24
Show Gist options
  • Save easylogic/1326025 to your computer and use it in GitHub Desktop.
Save easylogic/1326025 to your computer and use it in GitHub Desktop.
easylogic mobile framework for Titanium
exports.load = function () {
var win = $.window({
id: 'win1',
title : 'welcome',
layout: 'vertical',
backgroundColor: 'black'
});
$('win1').add($.view({ id: 'tbar1' }, { $style : 'board' }));
$('tbar1', { width: '100%', height: 200 }).add($.button({
title: 'test',
$style: 'button board',
$click: function(e) {
$module('window.main').open();
}
}))
return win;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment