getSelectedRange

returns the range of selected cells

string getSelectedRange();
stringthe selected range (or multiple ranges)

Example

// returns a single range 
const range = $$("ssheet").getSelectedRange(); // -> "C4:D6"
 
// returns multiple ranges
const range2 = $$("ssheet").getSelectedRange(); // -> "A1:C3;B4:D5"

Details

The returned range can be:

  • a string of cell references that refer to the first and the last cells of the range: "C4:D6"
  • multiple ranges with a semicolon as delimiter: "A1:C3;B4:D5"
See also
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.
If you have not checked yet, be sure to visit site of our main product Webix best ui framework and page of spreadsheet product.