@pnp/spfx-controls-react
Version:
Reusable React controls for SharePoint Framework solutions
32 lines • 822 B
TypeScript
import * as React from 'react';
import { IGridLayoutProps, IGridLayoutState } from './GridLayout.types';
/**
* Grid layout component
*/
export declare class GridLayout extends React.Component<IGridLayoutProps, IGridLayoutState> {
/**
* Constructor method
*/
constructor(props: IGridLayoutProps);
private _columnCount;
private _columnWidth;
private _rowHeight;
private _isCompact;
/**
* Renders the grid control
*/
render(): React.ReactElement<IGridLayoutProps>;
/**
* Calculates how many items in the page
*/
private _getItemCountForPage;
/**
* Calculates the page height for the grid
*/
private _getPageHeight;
/**
* Calls the passed onRenderCell
*/
private _onRenderCell;
}
//# sourceMappingURL=GridLayout.d.ts.map