[TIMOB-8840] BlackBerry: Implement important Titanium.UI.TableViewSection functionality
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-06-27T22:06:04.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 13, Release 3.1.2, Release 3.2.0 |
| Components | BlackBerry |
| Labels | notable, qe-testadded |
| Reporter | Francois Boisvert |
| Assignee | Pedro Enrique |
| Created | 2012-04-20T11:33:00.000+0000 |
| Updated | 2017-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.
sz: You can use the GridListLayout
There is no Cascades support for this control. SHould likely be removed from Beta scope.
TableViewSections implemented in PR: https://github.com/appcelerator/titanium_mobile_blackberry/pull/112
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();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();Closing ticket as fixed.