@wix/design-system
Version:
@wix/design-system
71 lines • 2.57 kB
TypeScript
export function createColumns({ tableProps, bulkSelectionContext }: {
tableProps: any;
bulkSelectionContext: any;
}): any[];
export function getDataTableProps(tableProps: any): any;
/**
* Table is a composite component that allows adding SelectionColumn, Toolbar (on top of the TitleBar).
* It is a context provider, and thus the Table.Consumer, Table.TitleBar and Table.Content can be rendered separately.
*/
export class Table extends React.Component<any, any, any> {
static ToolbarContainer: {
(props: any): React.JSX.Element;
displayName: string;
};
static Titlebar: {
({ dataHook }: {
dataHook: any;
}): React.JSX.Element;
displayName: string;
};
static Content: {
({ titleBarVisible, titleBarDisplay, dataHook, }: {
titleBarVisible?: boolean | undefined;
titleBarDisplay?: boolean | undefined;
dataHook: any;
}): React.JSX.Element;
displayName: string;
};
static SubToolbar: {
({ dataHook, children }: {
dataHook: any;
children: any;
}): React.JSX.Element;
displayName: string;
};
static EmptyState: {
({ image, children, align, ...propsWithNoDefaults }: {
[x: string]: any;
image?: null | undefined;
children?: null | undefined;
align?: "center" | undefined;
}): React.JSX.Element;
displayName: string;
};
static BulkSelectionCheckbox: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
constructor(props: any);
constructor(props: any, context: any);
state: {
leftShadowVisible: boolean;
rightShadowVisible: boolean;
};
tableRef: React.RefObject<any>;
scrollElementRef: React.RefObject<any>;
_handleUpdateScrollShadows: (leftShadowVisible: any, rightShadowVisible: any) => void;
shouldComponentUpdate(): boolean;
setSelectedIds(selectedIds: any): void;
renderChildren(): any;
render(): any;
bulkSelection: BulkSelection | null | undefined;
}
export namespace Table {
export let displayName: string;
export { dataTableRowVirtualStyle };
export { dataTableRowStyle };
export let defaultProps: any;
}
import React from 'react';
import { BulkSelection } from './BulkSelection';
import * as dataTableRowVirtualStyle from './DataTable/components/DataTableRowVirtual.st.css';
import * as dataTableRowStyle from './DataTable/components/DataTableRow.st.css';
//# sourceMappingURL=Table.d.ts.map