UNPKG

1.17 kBJavaScriptView Raw
1/**
2 * main module of LineUp.js containing the main class and exposes all other modules
3 */
4import { LocalDataProvider } from './provider';
5import { LineUp, Taggle } from './ui';
6export * from './builder';
7export * from './config';
8export * from './internal/mathInterfaces';
9export * from './model';
10export * from './provider';
11export * from './renderer';
12export * from './ui';
13export { LineUp as default } from './ui';
14export function createLocalDataProvider(data, columns, options) {
15 if (options === void 0) { options = {}; }
16 return new LocalDataProvider(data, columns, options);
17}
18/**
19 *
20 * @param container the html element lineup should be built in
21 * @param data {DataProvider} the data providier
22 * @param config {Partial<ILineUpOptions>} lineup configuration overrides
23 * @returns {LineUp} the created lineup instance
24 */
25export function createLineUp(container, data, config) {
26 if (config === void 0) { config = {}; }
27 return new LineUp(container, data, config);
28}
29export function createTaggle(container, data, config) {
30 if (config === void 0) { config = {}; }
31 return new Taggle(container, data, config);
32}
33//# sourceMappingURL=index.js.map
\No newline at end of file