[英]how to add the plus button to the right side of the table view in objective-c?
[英]Sencha Touch: how to add a table view as rootView in left side & a view with a button as detailsView in right side of this split view in sencha touch
我已经使用sencha touch
和phone gap
在iphone
实现了一个应用程序。
在带有两个文本消息的SRC文件中的index.js中使用以下代码实现了拆分视图 ,如下图所示
现在,我需要在左侧根视图上添加一个表格视图,并在右侧详细信息视图上添加一个按钮。 怎么样?
提前致谢
Ext.ns('sink', 'demos', 'Ext.ux');
Ext.ux.UniversalUI = Ext.extend(Ext.Panel,
{
fullscreen: true,
layout: 'hbox',
items:
[
//Root view
{
xtype: 'panel',
html: 'TableView/Rootview goes here ...',
flex: 1
},
//Details view
{
xtype: 'panel',
html: 'Message Detail view goes here ....',
flex: 2
}
]
});
当前,您的rootView
和detailView
都是xtype: 'panel'
。 为了实现所需的功能,您必须对这两个项目进行一些修改:
GridView
,请阅读此内容以获取更多详细信息: http : //www.sencha.com/forum/showthread.php? GridView
{ xtype: 'container', items: [ {xtype: 'button', text: 'my button'}, {xtype: 'panel', text: 'detail panel'}. ] }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.