selectRange
selects the specified range of elements
void selectRange(id row_id,id end_row_id, [boolean preserve] );
row_id | id | the id of the first selected row in the selection range |
end_row_id | id | the id of the last selected row in the selection range |
preserve | boolean | preserves the previously made selection (true by default) |
Details
Alternative syntax
The parameters of the method differ depending on the value of the select parameter.
The main description above relates to select: 'row'.
If select:'cell':
dtable.selectRange(row_id, column_id, end_row_id, end_column_id);
- row_id - (string,number) the row id of the first selected cell in the selection range
- column_id - (string,number) the column id of the first selected cell in the selection range
- end_row_id - (string,number) the row id of the last selected cell in the selection range
- end_column_id - (string,number) the column id of the last selected cell in the selection range
If select:'column':
dtable.selectRange(column_id, end_column_id);
- column_id - (string,number) the id of the first selected column in the selection range
- end_column_id - (string,number) the id of the last selected column in the selection range
See also
Back to top