UNPKG

kero

Version:

<img src="http://tinper.org/assets/images/kero.png" width="120" style="max-width:100%;"/>

36 lines (32 loc) 672 B
/** * Module : kero dataTable getFocus * Author : liuyk(liuyk@yonyou.com) * Date : 2016-08-08 09:59:01 */ /** * 获取焦点行 * @memberof DataTable * @return {u.Row} 焦点行 * @example * datatable.getFocusRow() */ const getFocusRow = function() { if (this.focusIndex() != -1) return this.getRow(this.focusIndex()) else return null } /** * 获取焦点行索引 * @memberof DataTable * @return {number} 焦点行索引 * @example * datatable.getFocusIndex() */ const getFocusIndex = function() { return this.focusIndex() } export const getFocusFunObj = { getFocusRow: getFocusRow, getFocusIndex: getFocusIndex }