Titanium UI之TableViews组件
TableViews 1、为tableView增加数据 2、Row的属性 3、自定义Row,Row组,Row Section 4、在TableView的搜索 5、TableView的事件 内容 Ti里面创建一个TableView,如下: var table = new Titanium . UI . createTableView ({ /* properties */ }); 这是其包含的属性: height and width top and left backgroundColor and backgroundImage rowHeight / minRowHeight / maxRowHeight – 控制行的尺寸 headerTitle / headerView footerTitle / footerView scrollable (boolean) –控制tableView的滚动,纵向滚动条 为TableView添加数据 TableView的一行是一个Ti.UI.TableViewRow对象,当然,你可以通过此对象来控制该行。 Ti.UI.createTableViewRow(),此方法用来创建一个TableViewRow对象。 你可以通过javascript来循环的创建此对象。 Object literals as rows // 通过json来做为数据 var