Community Questions & Answers

Is .parent ok to use on ti.views?

Hello everybody, i have recently found the great .parent property existing out there, but im wondering why this very useful property is NOT documented, so my question is is it a good practice to use this property? is it gonna be deprecated or removed in...

TableViewRow redraw itself.

I've made a table like twitter feed, with buttons "Like, Share" inside, and everytime I click one of those, the parent row get 'selected' but not 'clicked' and the row it's being redraw like fliking, this is annoying, i've setup the bubbleParent...

how to get parent object?

app.js -> tabgroup - > tab1 - > win1(win1.js) - > tab2 - > win2(win2.js) win1.js - > button when click the button on win1, how to get tabgroup object? I want to change setActiveTab? app.js ~~~ var tabGroup =...

Selecting Parent Element for Modification

Here's what I want to do: I want to be able to create a whole bunch of rows in a table view, with an image in each row, and when an image of one of the rows is clicked, I want to be able to access the information of the row that the image is in. So,...

Call function in app.js from inside window

Hey I kinda had a similar question earlier and it was answered, but for some reason it wont let me call a regular function. I have app.js with a window linked to login.js I want to call a function in app.js from login.js In login.js: ~~~ var win =...

Run functions in parent controller

Hi Appcelerators, Let's say we're using the controller "list". I from there create a new controller by using `var win = Alloy.createController('common')` and calling it as a modal, using `win.open({modal: true;})`. Now, this modal needs to run...

How to access labels in a row when a switch is touched

Hi, I've been looking for info on something I'm sure is simple. I have a table with rows gathered via RSS. Each row has two labels and a switch. When the switch is touched the event returns the switch object but I can't get the value of a label from the...

How to get first element of parent object

Hi, Perhaps a stupid question but I am new to Titanium mobile and ran into a "problem". I have a button, which contains an image. When the button is clicked I want the image to change. How could I check in the event listener what image is...

Reach Parent Object From Child Object

Hi Titaniums .. i have a group of buttons in scrollableView and i wanna made a changes on the all buttons when one of them clicked .. number of buttons not static .. this is my code .. (buttons == radio buttons ) ~~~ function...

Get current file path

Hi ! I have a file 'View.js' in a directory called 'MyViews', how can i get with a command (written in the file 'View.js'), the path : '/MyViews/View.js'. I already tried this to get directory and/or file name : `Ti.Filesystem.resourcesDirectory`...

Animate a parent view

I am trying to animate a parent which has several child imageviews and label views. When I just try to animate it won't work. ~~~ var view = new ParentViewWithChilds(); // <-- this module returns the parent view with child views var t =...

Dynamically hide parents children

I would like to hide dynamically created labels when one of the labels parents is clicked. Note the comment in the code below, it may help explain my goal. Basically, there is a main view, which has several subviews and each subview has a label. I want ALL...

Change tab

I know using setActiveTab will change it, but what if my tabGroup lives in app.js and I am in a window called create.js and want to change the tab? Is their like a parent method?

Showing 1-32 of 32