Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16266

Android: ListView.sections is undefined

    Details

      Description

      There's no way to access a ListView sections property. It will always returns undefined.

      var window = Titanium.UI.createWindow({  
          title:'Tab 1',
          backgroundColor:'#fff'
      });
       
      var listView = Ti.UI.createListView({ });
       
      window.add(listView);
       
      var section = Ti.UI.createListSection({
      	items: [
      		{
      			properties: {
      				title: 'Hallo'
      			}
      		}
      	]
      });
       
      listView.appendSection(section);
       
      function test() {
      	Ti.API.error(" >> " + listView.sections);
      }
       
      test();
       
      setTimeout(test, 1e3);

        Attachments

          Activity

            People

            • Assignee:
              sunila Sunila
              Reporter:
              yuchi Pier Paolo Ramon
              Reviewer:
              Hieu Pham
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-18251
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration