diff --git a/exports/datatable.d.ts b/exports/datatable.d.ts new file mode 100644 index 000000000..ae61002fa --- /dev/null +++ b/exports/datatable.d.ts @@ -0,0 +1 @@ +export * from './components/datatable/DataTable'; \ No newline at end of file diff --git a/exports/datatable.js b/exports/datatable.js new file mode 100644 index 000000000..ed6b874f2 --- /dev/null +++ b/exports/datatable.js @@ -0,0 +1,3 @@ +'use strict'; +module.exports = require('./components/datatable/DataTable.vue'); + \ No newline at end of file diff --git a/src/components/datatable/DataTable.d.ts b/src/components/datatable/DataTable.d.ts new file mode 100644 index 000000000..0651560a7 --- /dev/null +++ b/src/components/datatable/DataTable.d.ts @@ -0,0 +1,47 @@ +import Vue, { VNode } from 'vue'; + +export declare class DataTable extends Vue { + value?: any[]; + dataKey?: string; + rows?: number; + first?: number; + totalRecords?: number; + paginator?: boolean; + paginatorPosition?: string; + alwaysShowPaginator?: boolean; + paginatorTemplate?: string; + pageLinkSize?: number; + rowsPerPageOptions?: number[]; + currentPageReportTemplate?: string; + lazy?: boolean; + loading?: boolean; + loadingIcon?: string; + sortField?: string; + sortOrder?: number; + defaultSortOrder?: number; + multiSortMeta?: any[]; + sortMode?: string; + filters: { + [s: string]: any; + }; + selection?: any[]|any; + selectionMode?: string; + compareSelectionBy?: string; + metaKeySelection?: boolean; + rowHover?: boolean; + csvSeparator?: string; + exportFilename?: string; + autoLayout?: boolean; + $emit(eventName: 'page', event: Event): this; + $emit(eventName: 'sort', event: Event): this; + $emit(eventName: 'filter', event: Event): this; + $emit(eventName: 'row-select', event: Event): this; + $emit(eventName: 'row-unselect', event: Event): this; + $slots: { + header: VNode[]; + paginatorLeft: VNode[]; + paginatorRight: VNode[]; + empty: VNode[]; + footer: VNode[]; + } +} \ No newline at end of file