|
var office = api.require('officePreview');
var data = api.pageParam.office;
console.log($api.jsonToStr(data));
$api.text($api.byId('header_title'), data.name);
office.open({
rect: {
x: '0',
y: offset.h,
w: 'auto',
h: 'auto'
},
url: data.url,
// fixedOn: api.frameName,
// fixed: true,
fileType: data.fileType
}); |
|