Skip to content

Commit 29aa010

Browse files
author
Dmitry Kats
committed
Release 0.3.2
1 parent 1988809 commit 29aa010

File tree

11 files changed

+2152
-0
lines changed

11 files changed

+2152
-0
lines changed

dist/Table.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
define(["jquery", "angara.tablejs", "exports"], function ($, TableViewer, exports) {
2+
exports.Show = function (tableSource, container) {
3+
tableSource.viewSettings = { defaultTab: "summary", defaultPageSize: 10, hideNaNs: false };
4+
TableViewer.show(container, tableSource);
5+
};
6+
});

dist/TableView.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
define(["jquery", "angara.tablejs", "exports"], function ($, TableViewer, exports) {
2+
exports.Show = function (tableView, container) {
3+
var tableSource = tableView["table"];
4+
var viewSettings = tableView["viewSettings"];
5+
if (viewSettings.customFormatters) {
6+
Object.keys(viewSettings.customFormatters).forEach(function (key) {
7+
var ftext = viewSettings.customFormatters[key];
8+
viewSettings.customFormatters[key] = new Function('x', ftext);
9+
});
10+
} else
11+
viewSettings.customFormatters = {};
12+
tableSource.viewSettings = viewSettings;
13+
TableViewer.show(container, tableSource);
14+
};
15+
});

0 commit comments

Comments
 (0)