1 |
|
2 |
|
3 |
|
4 |
|
5 | import { IColumnDesc } from './model';
|
6 | import { DataProvider, LocalDataProvider, ILocalDataProviderOptions } from './provider';
|
7 | import { LineUp, Taggle } from './ui';
|
8 | import { ILineUpOptions, ITaggleOptions } from './config';
|
9 |
|
10 | export * from './builder';
|
11 | export * from './config';
|
12 | export * from './internal/mathInterfaces';
|
13 | export * from './model';
|
14 | export * from './provider';
|
15 | export * from './renderer';
|
16 | export * from './ui';
|
17 | export { LineUp as default } from './ui';
|
18 |
|
19 | export function createLocalDataProvider(
|
20 | data: any[],
|
21 | columns: IColumnDesc[],
|
22 | options: Partial<ILocalDataProviderOptions> = {}
|
23 | ) {
|
24 | return new LocalDataProvider(data, columns, options);
|
25 | }
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | export function createLineUp(container: HTMLElement, data: DataProvider, config: Partial<ILineUpOptions> = {}) {
|
35 | return new LineUp(container, data, config);
|
36 | }
|
37 |
|
38 | export function createTaggle(container: HTMLElement, data: DataProvider, config: Partial<ITaggleOptions> = {}) {
|
39 | return new Taggle(container, data, config);
|
40 | }
|