getSelectedBlock
returns the attributes of the current block selection
object getSelectedBlock();
| object | the attributes of the current block selection |
Example
var top_row=myGrid.getSelectedBlock().LeftTopRow; var bottom_row=myGrid.getSelectedBlock().RightBottomRow; var left_column=myGrid.getSelectedBlock().LeftTopCol; var right_column=myGrid.getSelectedBlock().RightBottomCol;
Details
returns an object with four properties:
- LeftTopRow: the index of the top row in the selected block,
- LeftTopCol: the index of the first column in the selected block,
- RightBottomRow: the index of the bottom row in the selected block,
- RightBottomCol: the index of the last column in the selected block describing the boundary elements of the block
Back to top