office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
46 lines (36 loc) • 1.14 kB
text/typescript
import { IColumn } from './DetailsList.types';
import { IDetailsRowStyles, ICellStyleProps } from './DetailsRow.types';
import { IDetailsListProps } from './DetailsList';
import { IDetailsRowProps } from './DetailsRow';
export type IOverrideColumnRenderProps = Pick<IDetailsListProps, 'onRenderItemColumn'> & Pick<IDetailsRowProps, 'cellsByColumn'>;
export interface IDetailsRowFieldsProps extends IOverrideColumnRenderProps {
/**
* Data source for this component
*/
item: any;
/**
* The item index of the collection for the DetailsList
*/
itemIndex: number;
/**
* Index to start for the column
*/
columnStartIndex: number;
/**
* Columns metadata
*/
columns: IColumn[];
/**
* whether to render as a compact field
*/
compact?: boolean;
/**
* Whether to show shimmer
*/
shimmer?: boolean;
/**
* Required prop to be passed in from the parent DetailsRow a map of classNames and its mergestyle-created classNames
*/
rowClassNames: { [className in keyof IDetailsRowStyles]: string };
cellStyleProps?: ICellStyleProps;
}