fixing table.rows()
This commit is contained in:
parent
3d658a9051
commit
17df239599
|
@ -97,7 +97,7 @@ var _tableRows = {
|
||||||
};
|
};
|
||||||
var _tableRowsPage = {
|
var _tableRowsPage = {
|
||||||
writable: true,
|
writable: true,
|
||||||
value: () => table.pages[table.rows().dt.currentPage - 1]
|
value: () => table.pages[table.rows.dt.currentPage - 1]
|
||||||
};
|
};
|
||||||
|
|
||||||
const selectorController = action => {
|
const selectorController = action => {
|
||||||
|
|
|
@ -21,7 +21,7 @@ $(document).ready(() => {
|
||||||
class TableController {
|
class TableController {
|
||||||
static #tableRows = () => table.activeRows.length > 0 ? table.activeRows : [];
|
static #tableRows = () => table.activeRows.length > 0 ? table.activeRows : [];
|
||||||
|
|
||||||
static #tableRowsPage = () => table.pages[table.rows().dt.currentPage - 1];
|
static #tableRowsPage = () => table.pages[table.rows.dt.currentPage - 1];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns Selected inputs from device list
|
* @returns Selected inputs from device list
|
||||||
|
|
Reference in a new issue