Skip to content

Instantly share code, notes, and snippets.

View joseandro's full-sized avatar
:shipit:

Joseandro Luiz joseandro

:shipit:
View GitHub Profile
@joseandro
joseandro / .jshint
Created November 25, 2014 14:59
JShint rules definition example
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@joseandro
joseandro / gist:99e202816e8928927fc2
Last active December 27, 2016 08:34
TabGroup + ActionBar example
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
// create tab group
var tabGroup = Titanium.UI.createTabGroup();
//
// create base UI tab and root window
//
Titanium.UI.setBackgroundColor('red');
// root
var rootWin = Ti.UI.createWindow({
title: 'Root Win',
backgroundColor: 'gray',
tabBarHidden: true,
navBarHidden: true
});