1
我有很小的需求,即在sencha touch中的PDFViewer,默认分页工具栏是隐藏的。一旦我们点击pdf文档,分页工具栏被显示,剩余时间被隐藏。在这里我的问题是分页工具栏没有被显示和隐藏。 我尝试了下面的代码。请给我建议。 这里是我的代码如何使用sencha touch显示和隐藏分页工具栏?
samplePdf = {
xtype : 'pdfpanel',
id: 'pdfViewer', src :'http://cdn.mozilla.net/pdfjs/tracemonkey.pdf',
scrollable: true,
hidePagingtoolbar: false,
listeners: {
tap: {
fn: function() {
paging = Ext.getCmp('pdfViewer');
if(samplePdf.hidePagingtoolbar==false){
hidePagingtoolbar:true
//Ext.getCmp('pdfViewer').hidePagingtoolbar.hide();
}
else{
hidePagingtoolbar: true;
}
},
element: 'element'},}};
感谢, 拉哈西克哈。
感谢您的回答,这对我更有帮助... – Raj