Add a function getSelection() so application code can more easily find the IDs

This commit is contained in:
Nathan Gray 2013-03-20 22:10:51 +00:00
parent 555582eb44
commit 3332eec106

View File

@ -340,6 +340,20 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput], {
} }
}, },
/**
* Gets the selection
*
* @return Object { ids: [UIDs], inverted: boolean}
*/
getSelection: function() {
var selected = this.controller._selectionMgr.getSelected();
if(typeof selected == "object" && selected != null)
{
return selected;
}
return {ids:[],inverted:false};
},
/** /**
* Generates the column caption for the given column widget * Generates the column caption for the given column widget
*/ */