Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.define("su.opencode.nostamet.panels.indoc.PdfViewerPanel", {
- extend: 'Kefir.BasePanel',
- layout: 'anchor',
- initComponent: function() {
- var me = this;
- Ext.apply(me, {
- border: false,
- frame: false,
- // resizable: { pinned: true, handles: 's e', minHeight: 1, dynamic: true },
- // html: "<object width='100%' height='750px' data=\"/NostametDocflow/docflow/storage/getPdf?id=192B5294-B634-44AA-97A2-7AB43FB6EB80\"\n" +
- // " type=\"application/pdf\">\n" +
- // "</object>"
- });
- me.callParent();
- Ext.create('Ext.window.Window', {
- title: 'просмотр документа',
- height: 200,
- width: 400,
- layout: 'fit',
- // items: { // Let's put an empty grid in just to illustrate fit layout
- // xtype: 'grid',
- // border: false,
- // columns: [{header: 'World'}], // One header just for show. There's no data,
- // store: Ext.create('Ext.data.ArrayStore', {}) // A dummy empty data store
- // },
- html: "<object width='100%' height='750px' data=\"/NostametDocflow/docflow/storage/getPdf?id=192B5294-B634-44AA-97A2-7AB43FB6EB80\"\n" +
- " type=\"application/pdf\">\n" +
- "</object>"
- }).show();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement