Skip to content

Instantly share code, notes, and snippets.

View casevictor's full-sized avatar

Victor Casé casevictor

View GitHub Profile
@casevictor
casevictor / filesystem.js
Last active January 31, 2019 00:00
Titanium - How to list all your files/folders from your SD Card
var mkdfs = require("dk.mikkendigital.mkdfs"); // <- this module allows you to acess the SD Card root, without the AppDirectory
exports.showFileSystem = function(){
//Window that will be pop-up with a tableview
var win = Ti.UI.createWindow({
height:'100%',
width:'100%',
});
@casevictor
casevictor / controller.js
Created May 26, 2014 23:40
How to do a cross-platform loading indicator module.
var loading = require('functions').loading;
loading.setMessage('Autenticando...');
loading.show();
setTimeout(function(){
loading.hide();
},5000);
@casevictor
casevictor / table.js
Created April 17, 2014 02:50
A way to implement Titanium.UI.SearchBar with custom UI.tableRows using Alloy ( Android and iOS platforms )
//On iOS the default is 'Search', On Android the default is empty
$.search.hintText = 'Deep Search'
if(OS_IOS){
//Equals to tableRow.js new property
$.table.filterAttribute="filter";
}
if(OS_ANDROID){