minor fixes
This commit is contained in:
parent
1f10ae59bd
commit
34b067d27a
@ -626,7 +626,7 @@ var DEFAULT_OPTIONS = {
|
|||||||
addCheckboxColumn: true,
|
addCheckboxColumn: true,
|
||||||
enableClusterize: true,
|
enableClusterize: true,
|
||||||
enableLogs: false,
|
enableLogs: false,
|
||||||
takeAvailableSpace: true
|
takeAvailableSpace: false
|
||||||
};
|
};
|
||||||
|
|
||||||
var DataTable = function () {
|
var DataTable = function () {
|
||||||
@ -809,6 +809,16 @@ var DataTable = function () {
|
|||||||
|
|
||||||
_dom2.default.style(this.bodyScrollable, { width: width + 'px' });
|
_dom2.default.style(this.bodyScrollable, { width: width + 'px' });
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
key: 'getColumn',
|
||||||
|
value: function getColumn(colIndex) {
|
||||||
|
return this.datamanager.getColumn(colIndex);
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
key: 'getCell',
|
||||||
|
value: function getCell(colIndex, rowIndex) {
|
||||||
|
return this.datamanager.getCell(colIndex, rowIndex);
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
key: 'getColumnHeaderElement',
|
key: 'getColumnHeaderElement',
|
||||||
value: function getColumnHeaderElement(colIndex) {
|
value: function getColumnHeaderElement(colIndex) {
|
||||||
@ -1393,6 +1403,9 @@ var CellManager = function () {
|
|||||||
value: function focusCell($cell) {
|
value: function focusCell($cell) {
|
||||||
if (!$cell) return;
|
if (!$cell) return;
|
||||||
|
|
||||||
|
// don't focus if already editing cell
|
||||||
|
if ($cell === this.$editingCell) return;
|
||||||
|
|
||||||
var _$$data3 = _dom2.default.data($cell),
|
var _$$data3 = _dom2.default.data($cell),
|
||||||
colIndex = _$$data3.colIndex,
|
colIndex = _$$data3.colIndex,
|
||||||
isHeader = _$$data3.isHeader;
|
isHeader = _$$data3.isHeader;
|
||||||
@ -2291,6 +2304,7 @@ var RowManager = function () {
|
|||||||
this.instance = instance;
|
this.instance = instance;
|
||||||
this.options = this.instance.options;
|
this.options = this.instance.options;
|
||||||
this.wrapper = this.instance.wrapper;
|
this.wrapper = this.instance.wrapper;
|
||||||
|
this.bodyScrollable = this.instance.bodyScrollable;
|
||||||
this.datamanager = this.instance.datamanager;
|
this.datamanager = this.instance.datamanager;
|
||||||
|
|
||||||
this.bindEvents();
|
this.bindEvents();
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -175,6 +175,9 @@ export default class CellManager {
|
|||||||
focusCell($cell) {
|
focusCell($cell) {
|
||||||
if (!$cell) return;
|
if (!$cell) return;
|
||||||
|
|
||||||
|
// don't focus if already editing cell
|
||||||
|
if ($cell === this.$editingCell) return;
|
||||||
|
|
||||||
const { colIndex, isHeader } = $.data($cell);
|
const { colIndex, isHeader } = $.data($cell);
|
||||||
|
|
||||||
if (this.isStandardCell(colIndex) || isHeader) {
|
if (this.isStandardCell(colIndex) || isHeader) {
|
||||||
|
|||||||
@ -24,7 +24,7 @@ const DEFAULT_OPTIONS = {
|
|||||||
addCheckboxColumn: true,
|
addCheckboxColumn: true,
|
||||||
enableClusterize: true,
|
enableClusterize: true,
|
||||||
enableLogs: false,
|
enableLogs: false,
|
||||||
takeAvailableSpace: true
|
takeAvailableSpace: false
|
||||||
};
|
};
|
||||||
|
|
||||||
export default class DataTable {
|
export default class DataTable {
|
||||||
@ -207,6 +207,14 @@ export default class DataTable {
|
|||||||
$.style(this.bodyScrollable, { width: width + 'px' });
|
$.style(this.bodyScrollable, { width: width + 'px' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getColumn(colIndex) {
|
||||||
|
return this.datamanager.getColumn(colIndex);
|
||||||
|
}
|
||||||
|
|
||||||
|
getCell(colIndex, rowIndex) {
|
||||||
|
return this.datamanager.getCell(colIndex, rowIndex);
|
||||||
|
}
|
||||||
|
|
||||||
getColumnHeaderElement(colIndex) {
|
getColumnHeaderElement(colIndex) {
|
||||||
return this.columnmanager.getColumnHeaderElement(colIndex);
|
return this.columnmanager.getColumnHeaderElement(colIndex);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,6 +5,7 @@ export default class RowManager {
|
|||||||
this.instance = instance;
|
this.instance = instance;
|
||||||
this.options = this.instance.options;
|
this.options = this.instance.options;
|
||||||
this.wrapper = this.instance.wrapper;
|
this.wrapper = this.instance.wrapper;
|
||||||
|
this.bodyScrollable = this.instance.bodyScrollable;
|
||||||
this.datamanager = this.instance.datamanager;
|
this.datamanager = this.instance.datamanager;
|
||||||
|
|
||||||
this.bindEvents();
|
this.bindEvents();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user