Sencha Touch中工具栏的多个按钮

时间:2021-05-14 18:49:14

i need to intimate the user that toolbar contains the scroll bar and there is some more buttons in the toolbar. Any sample code for the issue.

我需要亲密的用户工具栏包含滚动条,工具栏中还有一些按钮。该问题的任何示例代码。

thanks in advance...

提前致谢...

1 个解决方案

#1


1  

You may try something like this (in Sencha Touch 2):

您可以尝试这样的事情(在Sencha Touch 2中):

var toolbar = Ext.create('Ext.Panel', {
     id: 'meetingList',
     flex: 1,
     scrollable: {direction: 'horizontal', indicators: false},
     defaults: {width: 200},
     items: [{
        xtype: 'button',
        text: 'Button1'
     },{
        xtype: 'button',
        text: 'Button2'
     },
     ....
    ]
});

#1


1  

You may try something like this (in Sencha Touch 2):

您可以尝试这样的事情(在Sencha Touch 2中):

var toolbar = Ext.create('Ext.Panel', {
     id: 'meetingList',
     flex: 1,
     scrollable: {direction: 'horizontal', indicators: false},
     defaults: {width: 200},
     items: [{
        xtype: 'button',
        text: 'Button1'
     },{
        xtype: 'button',
        text: 'Button2'
     },
     ....
    ]
});