Copy/Paste example?
Anyoe have a 2.5.1 copy/paste example or direct me somewhere where I can read more about it? TIA.
Jimmy
May 6,
obj.getSelectedText = function(){
var c, r, a, text = [];
var cols = this.getSelectedColumns();
var rows = this.getSelectedRows();
if (this.getCurrentSelection() == "row"){
cols = [];
var count = this.getColumnCount();
var indices = this.getColumnIndices();
for (c=0; c<count; c++){
cols[c] = indices ? indices[c] : c;
}
}
for (r=0; r<rows.length; r++){
a = [];
for (c=0; c<cols.length; c++){
a[c] = this.getCellText(cols[c], rows[r]);
}
text[r] = a.join("\t");
}
return text.join("\r\n");
};
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021