UNPKG

kero

Version:

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

32 lines (29 loc) 676 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() */ var getFocusRow = function getFocusRow() { if (this.focusIndex() != -1) return this.getRow(this.focusIndex());else return null; }; /** * 获取焦点行索引 * @memberof DataTable * @return {number} 焦点行索引 * @example * datatable.getFocusIndex() */ var getFocusIndex = function getFocusIndex() { return this.focusIndex(); }; export var getFocusFunObj = { getFocusRow: getFocusRow, getFocusIndex: getFocusIndex };