Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1331] View/Window/... has no property children in Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:53.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M01
ComponentsAndroid
Labelsandroid, defect
ReporterJick Steen
AssigneeDon Thorp
Created2011-04-15T02:49:37.000+0000
Updated2011-04-17T01:55:53.000+0000

Description

iPhone allows to access the 'children' property on each window, scrollableView, view... but this seems not available in Android.

var win = Titanium.UI.currentWindow;

Titanium.API.debug(win.children); // is null
if (win.children) {
for (var index = 0; index < win.children.length; index++) {

 win.remove(win.children[index]);

} }

Comments

  1. Matthew Lieder 2011-04-15

    Just ran across this limitation myself; since I have premium support I'm going to see if I can get them to prioritize this. It seems like it might be as simple as adding a getChildren() getter method to TiViewProxy.

  2. Don Thorp 2011-04-15

    Tickets with no one responsible get lost. I've moved it into 1.5 but I can't promise we'll get to it.

  3. Matt Schmulen 2011-04-15

    pass verified android sim 1.6/2.1 Titanium SDK version: 1.5.0 (11/27/10 10:50 aeb004c)

JSON Source