如何在窗口extjs组件autoEl iframe上禁用工具栏

时间:2014-03-27 06:40:58

标签: javascript extjs extjs4.1 extjs4.2

因此观看者无法下载或打印它。

这个代码::

function showsFiles(file) {
    var fileWindow = Ext.create('widget.window', {
        closeAction: 'hide',
        resizable: true,
        autoScroll: true,
        frame: false,
        border: false,
        constrain: true,
        modal: false,
        width: 800,
        height: 500,
        maxHeight: 850,
        items: [
            {
                xtype: 'component',
                autoEl: {
                    tag: 'iframe',
                    style: 'height: 100%; width: 100%; border: none',
                    src: "<?php echo Yii::app()->request->baseUrl; ?>/upload/" + file
                }
            }
        ],
        layout: {
            align: 'fit'
        }
    });
    fileWindow.setTitle(".:  File " + file + ":.");
    fileWindow.show();
}

0 个答案:

没有答案