Export DataTable

pull/41/head
cagataycivici 2019-07-10 22:51:05 +03:00
parent f251d67614
commit de04fd88ba
3 changed files with 51 additions and 0 deletions

1
exports/datatable.d.ts vendored Normal file
View File

@ -0,0 +1 @@
export * from './components/datatable/DataTable';

3
exports/datatable.js Normal file
View File

@ -0,0 +1,3 @@
'use strict';
module.exports = require('./components/datatable/DataTable.vue');

47
src/components/datatable/DataTable.d.ts vendored Normal file
View File

@ -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[];
}
}