getSelectedId

returns the first cell in the selected area

object|array getSelectedId(boolean asArray);
asArraybooleanoptional, if true the method returns the selected cells as an array
object|arraya cell object or an array with cell objects

Example

// returns the first cell in the selected area
var cell = $$("ssheet").getSelectedId();
// returns all the selected cells as an array
var cells = $$("ssheet").getSelectedId(true);

Related samples

Details

If no parameters were passed to the method, it returns the first cell in the selected area. If the "asArray" parameter is set to true, the method will return all of the cells in the selected area as an array. An object stores the cell position.

Back to top
If you have not checked yet, be sure to visit site of our main product Webix ui widget library and page of javascript spreadshee product.