UNPKG

@uniquedj95/vtable

Version:

An advanced datatable for Ionic vue framework

91 lines 3.12 kB
import { PropType } from "vue"; import { TableColumnInterface, ActionButtonInterface, RowActionButtonInterface, CustomFilterInterface, TableConfigInterface } from "./types"; import './datatable.css'; export declare const DataTable: import("vue").DefineComponent<{ rows: { type: PropType<any[]>; default: () => never[]; }; asyncRows: { type: PropType<() => Promise<any[]>>; required: false; }; columns: { type: PropType<TableColumnInterface[]>; default: () => never[]; }; actionsButtons: { type: PropType<ActionButtonInterface[]>; default: () => never[]; }; rowActionsButtons: { type: PropType<RowActionButtonInterface[]>; default: () => never[]; }; customFilters: { type: PropType<CustomFilterInterface[]>; default: () => never[]; }; color: { type: PropType<"primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "dark" | "medium" | "custom">; }; config: { type: PropType<TableConfigInterface>; default: () => {}; }; loading: { type: BooleanConstructor; default: boolean; }; }, () => (false | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>)[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("customFilter" | "queryChange" | "drilldown")[], "customFilter" | "queryChange" | "drilldown", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ rows: { type: PropType<any[]>; default: () => never[]; }; asyncRows: { type: PropType<() => Promise<any[]>>; required: false; }; columns: { type: PropType<TableColumnInterface[]>; default: () => never[]; }; actionsButtons: { type: PropType<ActionButtonInterface[]>; default: () => never[]; }; rowActionsButtons: { type: PropType<RowActionButtonInterface[]>; default: () => never[]; }; customFilters: { type: PropType<CustomFilterInterface[]>; default: () => never[]; }; color: { type: PropType<"primary" | "secondary" | "tertiary" | "success" | "warning" | "danger" | "light" | "dark" | "medium" | "custom">; }; config: { type: PropType<TableConfigInterface>; default: () => {}; }; loading: { type: BooleanConstructor; default: boolean; }; }>> & { onCustomFilter?: ((...args: any[]) => any) | undefined; onQueryChange?: ((...args: any[]) => any) | undefined; onDrilldown?: ((...args: any[]) => any) | undefined; }, { rows: any[]; columns: TableColumnInterface[]; actionsButtons: ActionButtonInterface[]; rowActionsButtons: RowActionButtonInterface[]; customFilters: CustomFilterInterface[]; config: TableConfigInterface; loading: boolean; }, {}>; //# sourceMappingURL=datatable.d.ts.map