getSelectedId of ui.spreadsheet, Methods Webix Docs

StartAPI Referenceui.spreadsheetMethods

returns the first cell in the selected area

object|array getSelectedId(boolean asArray);

asArray

booleanoptional, 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

Join Our Forum

We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.

Go to Forum

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.