getSpan

returns the span of a cell

array getSpan(number row,number column, [string page] );
rownumberthe row index of the cell
columnnumberthe column index of the cell
pagestringoptional, the name of the sheet
arrayan array describing the span, or undefined if the cell has no 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

If the cell has no span, the method returns undefined.

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.