We are using the FileExplorer in an internal web site, and using this code to open a file:
function OnExplorerFileOpen(oExplorer, args) {
if (!args.get_item().isDirectory()) {
setTimeout(function () {
var oWindowManager = oExplorer.get_windowManager();
var previewWindow = oWindowManager.getActiveWindow(); // Gets the current active widow.
try {
previewWindow.setSize(500, 500);
previewWindow.maximize();
} catch (e) {
}
}, 100); // Some timeout is required in order to allow the window to become active
}
}
How does the FileExplorer determine whether a file opens in a modal or as an attachment?
function OnExplorerFileOpen(oExplorer, args) {
if (!args.get_item().isDirectory()) {
setTimeout(function () {
var oWindowManager = oExplorer.get_windowManager();
var previewWindow = oWindowManager.getActiveWindow(); // Gets the current active widow.
try {
previewWindow.setSize(500, 500);
previewWindow.maximize();
} catch (e) {
}
}, 100); // Some timeout is required in order to allow the window to become active
}
}
How does the FileExplorer determine whether a file opens in a modal or as an attachment?