How to get selected row index from sap.m.Table

Previously we seen how to create tables in UI5 with different UI controllers and how to get the selected column details from table. In this post we are explaining the way of getting sap.m.Table selected row index. This will be helpful in many situation when we are using table in your application.

Read: How to get selected row data from sap.ui.Table.table.

Note : Table index start with [0].

view1.view.js

view1.controller.js

Output:
table_index