An MVC-inspired Appcelerator framework for the Titanium SDK, with focus on rapid development/prototyping. Contains built-in support for Backbone.js and Underscore.js.
Questions tagged [titanium-alloy]
918 questions
2
votes
3 answers
codestrong app uses backbone methods (on, off, trigger)
SDK 3.2.1
I'm studing CodeStrong-2012 app and I've noticed undocumented methods applied to controllers objects (on, off, trigger).
Later, I've found this ChangeLog for alloy:
1.0.0 (19 February 2013)
** Breaking Changes **
Backbone Events API…

Fernando Fabreti
- 4,277
- 3
- 32
- 33
2
votes
1 answer
Titanium JS: Is it possible to group a collection alphabetically in a ListView using data binding?
I'm migrating from a TableView to a ListView in Titanium. One of the new requirements it that the list is grouped alphabetically into ListSections. I can think of a way that I can do this using just Javascript, by generating the ListView data and…

shrewdbeans
- 11,971
- 23
- 69
- 115
2
votes
1 answer
Alloy data binding can't find collection
I'm writing a simple app in which i want to try Alloy data binding,
I have a model Region all set, I create a singleton by adding it in the markup
…

Zerho
- 1,440
- 4
- 19
- 39
2
votes
1 answer
Appcelerator Titanium JS: Table Alphabetical Index not working
I'm trying to get my head around using a the TableView index property to create native right hand alphabetical navigation - similar to that in the Apple iOS Contacts app - shown in the picture below:
I created a really simple example, with a set of…

shrewdbeans
- 11,971
- 23
- 69
- 115
2
votes
1 answer
Custom Image Gallery for IOS?
I learned to use iOS default native gallery to select an image with the following code,
gallery.addEventListener('click', function(e) {
Titanium.Media.openPhotoGallery({
success: function(event) {
// set image view
…

Prabhu
- 840
- 11
- 28
2
votes
1 answer
Titanium Alloy - How do I best assign a click event to an Option on a Option Dialog?
In Titanium Alloy, I have an OptionDialog for some filter options. But I'm not sure how to add click events each of the options, according to best practice.
View
2
votes
2 answers
Titanium touchmove position
I have this in the view index.xml:
and this in the controllers…

Duallip
- 33
- 5
2
votes
1 answer
Variable scope for titanium alloy
I would like to know how the variable scope works when Ti.include.
I made application on titanium 2.*
var x = '12'
Ti.include('lib.js');
in lib.js
Ti.API.info(x) //it shows 12
However, now I am transferring this code into alloy
in…

whitebear
- 11,200
- 24
- 114
- 237
2
votes
1 answer
How to create a header bar with buttons in Titanium JS?
I'm using Titanium Alloy to build an app and I'm trying to create a header bar with buttons in it, similar to the contacts app, as pictured below:
This header has the title in the middle and buttons either site.
I've been looking everywhere for a…

shrewdbeans
- 11,971
- 23
- 69
- 115
2
votes
1 answer
how to reach to a variable in another js file in appcelerator alloy
I have a small problem.
I have index.js
var loc = require('location');
function doClick (){
loc.doIt();
}
in location.js I have these
var dee = 12;
exports.doIt = function() {
alert(dee);
};
Which means that when I click on the button I can…

zyrag
- 353
- 1
- 3
- 17
2
votes
1 answer
How to handle dynamic creation of view in alloy xml
I have very simple view index.xml
in this program I want to open webView and use this instead of tableByFav View
when you click tableByFav.
I am not sure…

whitebear
- 11,200
- 24
- 114
- 237
2
votes
2 answers
How can I get each rows of tableview?
I am making feed reader appication on titanium alloy.
I have succeeded making table view and insert rows.
then I can tap the each row.
However I am not sure how to get attributs of each rows.
please see the places.
// how can I get title
// how can…

whitebear
- 11,200
- 24
- 114
- 237
2
votes
0 answers
Appcelerator Alloy model binding failing with instance model
controller:
var args=arguments[0]||{};
if(args.model){
$.myFighter = args.model;
}else{
alert('data not passed');
}
View:

Cristiano Coelho
- 1,675
- 4
- 27
- 50
2
votes
2 answers
Bind model to view from controller with alloy appcelerator
EDIT: Heres the example: https://github.com/prakash-anubavam/alloypreloadedsqlitedb/tree/master/app
And sumarizing, how does the view details.xml know which model is it taking the data from?
Coming from asp.net mvc, im having some issues…

Cristiano Coelho
- 1,675
- 4
- 27
- 50
2
votes
0 answers
Titanium, actionBar icon not working
if(Alloy.Globals.isAndroid){//if platform is android
$.tabGroup.addEventListener("open", function(e) {
var activity = $.tabGroup.getActivity();// I use tabgroup. get activity
var actionBar = activity.actionBar;
actionBar.icon…

sonifex
- 280
- 1
- 2
- 14