office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
39 lines (38 loc) • 1.02 kB
TypeScript
export interface IGridProps {
/**
* Gets the component ref.
*/
componentRef?: () => void;
/**
* The items to turn into a grid
*/
items: any[];
/**
* The number of columns
*/
columnCount: number;
/**
* Custom renderer for the individual items
*/
onRenderItem: (item: any, index: number) => JSX.Element;
/**
* Boolean indicating if the focus should support circular navigation
*/
shouldFocusCircularNavigate?: boolean;
/**
* Optional, class name for the FocusZone container for the grid
*/
containerClassName?: string;
/**
* Optional, handler for when the grid should blur
*/
onBlur?: () => void;
/**
* The optional position this grid is in the parent set (index in a parent menu, for example)
*/
positionInSet?: number;
/**
* The optional size of the parent set (size of parent menu, for example)
*/
setSize?: number;
}