- iPhone: 1.0
- Android: 1.0
This module has been created for performance and speed. It is simply a TableView module that exposes some different types of TableViewRows
- TITLE_ONLY
- SUBTITLE
- VALUE_1
- VALUE_2
Create a simple Javascript array with objects, and add parameters according to the TableView style
var TiTable = require('ti.table');
var data = [
{title: 'hello', subtitle : 'world'},
{title: 'hello', subtitle : 'world'}
];
var tableView = TiTable.createTableView({
backgroundColor: 'white',
type: TiTable.SUBTITLE,
data: data
});
Please, play around with the code and extend it!
The idea is to expose the most commonly used types of tableviews and make the table load fast, as well as scroll fast!
- Fork
- Clone
- Make changes, additions, etc..
- Test it, create a sample test the follows the patter of what's already there
- Submit pull request
I'd like to see a lot more table view row types for both platforms, iOS and Android. The API needs to be as simple as possible: TableView type and array of JS objects to create the data.
What ever contribution is made, it does not need to be cross platform, although it would be nice.
Copyright (c) 2013 Pedro Enrique
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
THE USE OR OTHER DEALINGS IN THE SOFTWARE.