Titanium JIRA Archive
Alloy (ALOY)

[ALOY-910] Need refresh control support in Alloy view mark-up

GitHub Issuen/a
TypeNew Feature
Resolution Date2014-01-21T18:45:13.000+0000
Affected Version/sAlloy 1.3.0
Fix Version/sAlloy 1.4.0, 2014 Sprint 02
Labelsalloy, qe-3.3.0, qe-testadded
ReporterDavid He
AssigneeTony Lukasavage


Code below produces an error
<TableView id="jobList" onClick="onTableClick">
        <SearchBar platform="ios" filterAttribute="title"/>
        <RefreshControl id="ptr" tintColor="#F5F8FA" onRefreshstart="refreshJobList"/>

[ERROR] :  Error with <RefreshControl> at line 9
[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.TableViewRow,Ti.UI.TableViewSection]
[ERROR] :  Alloy compiler failed


  1. Ritu Agrawal 2013-12-26

    It would help us to evaluate this feature request better if you can describe a use case for refresh control support. I would appreciate if you can describe your application use case and how you plan to use refresh control.
  2. Ritu Agrawal 2013-12-30

    Moving this feature request / improvement to engineering for further evaluation and prioritization. Q&A discussion: http://developer.appcelerator.com/question/160804/refreshcontrol-not-supported-in-alloy-view-makrup
  3. Tony Lukasavage 2014-01-21

    Resolved for both tableview and listview. PR: https://github.com/appcelerator/alloy/pull/302 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-910 Functional test

    Run the app on ios and assert that the compile error no longer exists

    drag the main tableview down and make sure you can see the refresh image

    Click the tableviewrow that states it opens a listview

    In the resulting listview, drag the listview down to reveal the refresh control

  4. Federico Casali 2014-04-23

    Verified resolved/fixed on iPhone 5 iOS7.1 TiSDK 3.3.0.v20140418162516 Alloy 1.4.0-dev CLI 3.3.0-dev Closing.

JSON Source