dattatable 2.11.45 → 2.11.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dashboard/table.d.ts +1 -0
- package/build/dashboard/table.js +7 -4
- package/dist/dattatable.js +1076 -1076
- package/dist/dattatable.min.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/Accordion.html +2 -2
- package/docs/classes/AuditLog.html +2 -2
- package/docs/classes/CanvasForm.html +2 -2
- package/docs/classes/Comments.html +2 -2
- package/docs/classes/Dashboard.html +4 -4
- package/docs/classes/DataTable.html +4 -3
- package/docs/classes/Documents.html +6 -6
- package/docs/classes/FilterSlideout.html +2 -2
- package/docs/classes/Footer.html +2 -2
- package/docs/classes/Header.html +2 -2
- package/docs/classes/InstallationRequired.html +2 -2
- package/docs/classes/ItemForm.html +4 -4
- package/docs/classes/List.html +4 -4
- package/docs/classes/ListConfig.html +2 -2
- package/docs/classes/ListSecurity.html +2 -2
- package/docs/classes/LoadingDialog.html +2 -2
- package/docs/classes/Modal.html +2 -2
- package/docs/classes/Navigation.html +3 -3
- package/docs/classes/Tiles.html +2 -2
- package/docs/classes/Timeout.html +2 -2
- package/docs/enums/ActionButtonTypes.html +2 -2
- package/docs/functions/formatBytes.html +1 -1
- package/docs/functions/formatDateValue.html +1 -1
- package/docs/functions/formatTimeValue.html +1 -1
- package/docs/functions/getContextInfo.html +1 -1
- package/docs/functions/getFileExt.html +1 -1
- package/docs/functions/waitForTheme.html +1 -1
- package/docs/interfaces/IAccordion.html +2 -2
- package/docs/interfaces/IAccordionProps.html +2 -2
- package/docs/interfaces/IAuditLogItem.html +15 -14
- package/docs/interfaces/IAuditLogItemCreation.html +2 -2
- package/docs/interfaces/IAuditLogProps.html +2 -2
- package/docs/interfaces/IAuditLogViewProps.html +2 -2
- package/docs/interfaces/ICommentsItem.html +2 -2
- package/docs/interfaces/ICreateLookupData.html +2 -2
- package/docs/interfaces/IDashboardProps.html +2 -2
- package/docs/interfaces/IDataTable.html +2 -2
- package/docs/interfaces/IDataTableProps.html +2 -2
- package/docs/interfaces/IDocumentsProps.html +2 -2
- package/docs/interfaces/IFilterItem.html +2 -2
- package/docs/interfaces/IFilterProps.html +2 -2
- package/docs/interfaces/IFooterProps.html +2 -2
- package/docs/interfaces/IGenerateLookupDataProps.html +2 -2
- package/docs/interfaces/IHeaderProps.html +2 -2
- package/docs/interfaces/IInstallProps.html +2 -2
- package/docs/interfaces/IItemFormCreateProps.html +2 -2
- package/docs/interfaces/IItemFormEditProps.html +2 -2
- package/docs/interfaces/IItemFormSaveProps.html +2 -2
- package/docs/interfaces/IItemFormTab.html +2 -2
- package/docs/interfaces/IItemFormTabInfo.html +2 -2
- package/docs/interfaces/IItemFormViewProps.html +2 -2
- package/docs/interfaces/IListConfig.html +2 -2
- package/docs/interfaces/IListConfigProps.html +2 -2
- package/docs/interfaces/IListProps.html +2 -2
- package/docs/interfaces/IListSecurity.html +2 -2
- package/docs/interfaces/IListSecurityItem.html +2 -2
- package/docs/interfaces/ILookupData.html +2 -2
- package/docs/interfaces/IShowDialogProps.html +2 -2
- package/docs/interfaces/ITiles.html +2 -2
- package/docs/interfaces/ITilesProps.html +2 -2
- package/docs/interfaces/IValidateLookupsProps.html +2 -2
- package/docs/variables/DattaTable.html +1 -1
- package/docs/variables/ListSecurityDefaultGroups.html +1 -1
- package/package.json +2 -2
package/build/dashboard/table.js
CHANGED
|
@@ -14,6 +14,7 @@ var DataTable = /** @class */ (function () {
|
|
|
14
14
|
function DataTable(props) {
|
|
15
15
|
this._datatable = null;
|
|
16
16
|
this._props = null;
|
|
17
|
+
this._table = null;
|
|
17
18
|
// Save the properties
|
|
18
19
|
this._props = props;
|
|
19
20
|
// Set the default properties
|
|
@@ -62,7 +63,8 @@ var DataTable = /** @class */ (function () {
|
|
|
62
63
|
// See if this is an array
|
|
63
64
|
if (row && typeof (row.length) === "number") {
|
|
64
65
|
// Add the row
|
|
65
|
-
this.
|
|
66
|
+
this._table.addRows(row);
|
|
67
|
+
this._datatable.draw(false);
|
|
66
68
|
}
|
|
67
69
|
else {
|
|
68
70
|
var newRow = [];
|
|
@@ -74,7 +76,8 @@ var DataTable = /** @class */ (function () {
|
|
|
74
76
|
newRow.push(value);
|
|
75
77
|
}
|
|
76
78
|
// Add the row
|
|
77
|
-
this.
|
|
79
|
+
this._table.addRows([row]);
|
|
80
|
+
this._datatable.draw(false);
|
|
78
81
|
}
|
|
79
82
|
};
|
|
80
83
|
// Applies the datatables.net plugin
|
|
@@ -151,14 +154,14 @@ var DataTable = /** @class */ (function () {
|
|
|
151
154
|
this._props.el.removeChild(this._props.el.firstChild);
|
|
152
155
|
}
|
|
153
156
|
// Render the data table
|
|
154
|
-
|
|
157
|
+
this._table = gd_sprest_bs_1.Components.Table({
|
|
155
158
|
className: this._props.className,
|
|
156
159
|
el: this._props.el,
|
|
157
160
|
rows: rows,
|
|
158
161
|
columns: this._props.columns
|
|
159
162
|
});
|
|
160
163
|
// Apply the plugin
|
|
161
|
-
this.applyPlugin(
|
|
164
|
+
this.applyPlugin(this._table);
|
|
162
165
|
};
|
|
163
166
|
// Searches the datatable
|
|
164
167
|
DataTable.prototype.search = function (value) {
|