Moved to: https://github.com/FokkeZB/UTiL/tree/master/share
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- note the ONLY change to this is the additional module="tabIndicator" | |
| attribute + properties to override indicator defaults //--> | |
| <Alloy> | |
| <TabGroup module="tabIndicator" tabsBackgroundColor="#000" tabIndicatorHeight="1" tabIndicatorColor="white" tabIndicatorWidth="75%"> | |
| <Tab title="Tab 1" icon="/images/icons/519-tools-1.png" activeIcon="/images/icons/519-tools-1_active.png" color="#555" activeColor="#fff"> | |
| <Window title="Tab 1" barColor="black" navTextColor = "#fff"> | |
| <Label onClick="openWin1">Tab 1</Label> | |
| </Window> | |
| </Tab> | |
| <Tab title="Tab 2" icon="/images/icons/516-archive-box.png" activeIcon="/images/icons/516-archive-box_active.png" color="#555" activeColor="#fff"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var jsObject = { | |
| foo: 'bar' | |
| }; | |
| var tiObject = Ti.UI.create2DMatrix(); | |
| function isJsObject(obj) { | |
| return typeof obj.__proto__ !== 'undefined'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'Label[platform=android]': { | |
| color: '#000' // all platforms except Android default to black | |
| } | |
| 'Window': { | |
| backgroundColor: '#fff' // white background instead of default transparent | |
| } | |
| 'Window[platform=android]': { | |
| modal: false // make android windows all heavyweight |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // blog.clearlyionnovative.com | |
| // twitter: @aaronksaunders | |
| // | |
| // Model file for integration Appcelerator Titanium Alloy with Wordpress JSON Plugin | |
| // | |
| exports.definition = { | |
| config : { | |
| "columns" : {}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function HorizontalTableView(options) { | |
| // defaults params | |
| var options = options || {}; | |
| options.width = options.width || Titanium.Platform.displayCaps.platformWidth; | |
| options.height = options.height || Titanium.Platform.displayCaps.platformHeight; | |
| var isAndroid = Ti.Platform.osname === 'android'; | |
| // On iOS we can do this, on Android there is some weird scrolling problems |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.definition = | |
| config: | |
| adapter: | |
| type: "rest" | |
| name: "Agent" | |
| extendModel: (Model) -> | |
| _.extend Model::, | |
| url: -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function showItems(e) { | |
| Ti.API.info(e.rowData.itemName); | |
| } | |
| var rowData=[]; | |
| for(var i=1;i<=10;i++){ | |
| var payload={ | |
| rowId:i, | |
| itemName:'Test' + i | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //// ---- Menu window, positioned on the left | |
| var menuWindow = Ti.UI.createWindow({ | |
| top:0, | |
| left:0, | |
| width:150 | |
| }); | |
| menuWindow.open(); | |
| //// ---- Menu Table | |
| // Menu Titles |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SEE QUESTION IN QA FORUM | |
| // http://developer.appcelerator.com/question/142378/integrating-nodeacs-with-expressjs-not-working | |
| // @aaronksaunders | |
| // | |
| /** | |
| * Module dependencies. | |
| */ | |
| var express = require('express'); |
NewerOlder