UNPKG

@omnia/fx

Version:

Provide Omnia Fx typings and tooling for clientside Omnia development.

31 lines (30 loc) 1.01 kB
import { VDataGridHeader, VDataGridItemScopedSlot } from "../../models"; import { TsxAllowUnknowProperties } from "../TsxAllowUnknowProperties"; export interface IDatatableProperties { itemsPerPage?: number; defaultProperty?: string; defaultDescending?: boolean; loading?: boolean; skip?: number; } /**Datatable Rendering */ export interface IDatatable extends IDatatableProperties { items: Array<any>; header: Array<VDataGridHeader>; onSort?: (propName: string, sortDsc: boolean) => Promise<Array<any>>; renderItem: (prop?: VDataGridItemScopedSlot<any>) => void; onPaging: (propName: string, sortDsc: boolean, skip: number) => Promise<Array<any>>; scrollElementSelector?: string; backgroundColor?: string; } declare global { namespace VueTsxSupport.JSX { interface Element { } interface ElementClass { } interface IntrinsicElements { "omfx-datatable": TsxAllowUnknowProperties<IDatatable>; } } }