Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1577] Android: baseController does not expose the element type

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 5.2.2
Fix Version/sn/a
Componentsn/a
Labelsalloy, baseController, inheritance, widget
ReporterOnur Yıldırım
AssigneeUnknown
Created2016-04-12T14:46:38.000+0000
Updated2018-03-06T18:50:02.000+0000

Description

I have a widget with a controller tvs. In the widget.js I set exports.baseController = "tvs" Although the root element in tvs is TableViewSection, I get the following error.
[ERROR] :  Error with <Widget> at line 23
[ERROR] :  Ti.UI.TableView child elements must be one of the following: [_ProxyProperty._Lists.HeaderView,_ProxyProperty._Lists.FooterView,_ProxyProperty._Lists.HeaderPullView,_ProxyProperty._Lists.Search,Ti.UI.SearchBar,Ti.UI.Android.SearchView,Ti.UI.RefreshControl,Ti.UI.TableViewRow,Ti.UI.TableViewSection,Ti.UI.iOS.PreviewContext]
[ERROR] :  Alloy compiler failed

Attachments

FileDateSize
widget-test.zip2016-04-12T21:31:20.000+00003020183

Comments

  1. Sharif AbuDarda 2016-04-12

    Hello, Please provide a full regeneratable sample code. Looks like the issue is with your Ti.UI.TableView child elements. Which must be one of the following: [_ProxyProperty._Lists.HeaderView,_ProxyProperty._Lists.FooterView,_ProxyProperty._Lists.HeaderPullView,_ProxyProperty._Lists.Search,Ti.UI.SearchBar,Ti.UI.Android.SearchView,Ti.UI.RefreshControl,Ti.UI.TableViewRow,Ti.UI.TableViewSection,Ti.UI.iOS.PreviewContext] Please check. See anything else is in there beside tham. Regards, Sharif.
  2. Onur Yıldırım 2016-04-12

    Hello Sharif, Added widget-test.zip to demonstrate the issue. Regards, Onur
  3. Onur Yıldırım 2017-11-12

    Any news on this?

JSON Source