PDA

View Full Version : Clipboard and Air



Thomas Triplet
2 Dec 2009, 4:12 PM
Hello,
I'm trying to copy simple text to the system clipboard and wanted to use the air package.

However, I can't get it to work, even with a trivial example:


spreadsheet_panel.getSelectionModel().on('cellselect',
function(sm, rowIdx, colIdx) {
Ext.air.Clipboard.setData('air:text', 'Selected row #'+rowIdx);
}
);

Am I missing something? (I did include ext-air.js...)