Hi,
I'd like to open new native window from an existing AIR application.
My application opens an Ext.air.Window, where on button click, I'd like to open new Ext.air.Window (from existing window).
Can this be done?
Here's a ssnippet of my code:
PHP Code:
new Ext.Panel({
title: 'Vnos dela',
border: false,
tbar: [{
text: 'Story Board',
handler: function() {
var iterationUuid = 'last';
var storyboardStore = new Ext.data.JsonStore({
autoDestroy: true,
url: 'projects/iteration/' + iterationUuid + '/storyboard',
storeId: 'myStoryBoardStore',
root: 'data',
idProperty: 'uuid',
fields: ['uuid', 'title', {name:'dueDate', type:'date'}]
});
if (iterationUuid) storyboardStore.load();
var win = new Ext.air.Window({
win: window.nativeWindow, // use root window's context
minimizeToTray: true,
width: 680,
height: 460,
items: [{
xtype: 'StoryBoardPanel',
store: storyboardStore
}]
});
win.show();
},
scope: this
}],
html: '<empty panel>',
cls:'empty'
});