Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8840] BlackBerry: Implement important Titanium.UI.TableViewSection functionality

GitHub Issuen/a
TypeStory
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-06-27T22:06:04.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 13, Release 3.1.2, Release 3.2.0
ComponentsBlackBerry
Labelsnotable, qe-testadded
ReporterFrancois Boisvert
AssigneePedro Enrique
Created2012-04-20T11:33:00.000+0000
Updated2017-03-09T00:48:05.000+0000

Description

A TableView section object. Usually contains TableViewRows In iOS, this is an abstract non-iOS class used to group rows into sections. There is no native analog.

Comments

  1. Tatyana Petrenko 2012-05-24

    sz: You can use the GridListLayout
  2. Tatyana Petrenko 2012-09-12

    There is no Cascades support for this control. SHould likely be removed from Beta scope.
  3. Pedro Enrique 2013-06-21

    TableViewSections implemented in PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/112
  4. Russell McMahon 2013-07-26

    Test 1
       var win = Titanium.UI.createWindow({
       	backgroundColor: '#ccc'
       });
       
       
       var table = Ti.UI.createTableView({
       	width: Ti.UI.FILL,
       	height: Ti.UI.FILL,
       	data: [
                  {title: 'row 1', header: 'section 1', subHeader: 'sub header of section 1'},
                  {title: 'row 2'},
                  {title: 'row 3'},
                  {title: 'row 4'},
                  {title: 'row 5'},
                  {title: 'row 1', header: 'section 2'},
                  {title: 'row 2'},
                  {title: 'row 3'},
                  {title: 'row 4'},
                  {title: 'row 5'},
                  {title: 'row 1', header: 'section 3'},
                  {title: 'row 2'},
                  {title: 'row 3'},
                  {title: 'row 4'},
                  {title: 'row 5'},
                  {title: 'row 1', header: 'section 4', subHeader: 'sub header of section 4'},
                  {title: 'row 2'},
                  {title: 'row 3'},
                  {title: 'row 4'},
                  {title: 'row 5'},
                  {title: 'row 1', header: 'section 5'},
                  {title: 'row 2'},
                  {title: 'row 3'},
                  {title: 'row 4'},
                  {title: 'row 5'}
       	       ]
       });
       
       win.add(table);
       
       
       
       win.open();
       
       
  5. Russell McMahon 2013-07-26

    Test 2
       var win = Titanium.UI.createWindow({
       	backgroundColor: '#ccc'
       });
       
       var d = [];
       for(var i = 0; i < 10; i++) {
       	var section = Ti.UI.createTableViewSection({
       		title: 'Hello section number ' + i,
       		subTitle: 'This is a subtitle for section #' + i
       	});
       	
       	for(var a = 0; a < 10; a++) {
       		section.add(Ti.UI.createTableViewRow({
       			title: 'Section #' + i + ' Row #' + a
       		}));
       	}
       	d.push(section);
       }
       
       var table = Ti.UI.createTableView({
       	width: Ti.UI.FILL,
       	height: Ti.UI.FILL,
       	data: d
       });
       
       win.add(table);
       
       
       
       win.open();
       
       
  6. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source