getSpan

returns the span of a cell

array getSpan(number row,number column, [string page] );
rownumberthe row id of the cell
columnnumberthe column id of the cell
pagestringoptional, the name of the sheet
arrayan array describing the span, if the cell is in a span

Example

const span = $$("ssheet").getSpan(1, 1);
// returns [1, 1, 5, 1]

Details

The method returns an array in the same format as the spans field in the data:

  • the row index that starts the span
  • the column index that starts the span
  • the number of columns in the span
  • the number of rows in the span

For the active sheet, the row and column ids in the array are strings.

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 web control library and page of spreadsheet javascript library product.