Module "hooks/useAutoSizer"
Functions
Const AutoSizerCanvas
- AutoSizerCanvas(defaultFont: string): { context: null | CanvasRenderingContext2D; measureText: measureText; setFont: setFont }
-
Parameters
Returns { context: null | CanvasRenderingContext2D; measureText: measureText; setFont: setFont }
-
context: null | CanvasRenderingContext2D
-
measureText: measureText
-
setFont: setFont
Const useAutoSizer
- useAutoSizer(__namedParameters: { cellSpacing: number; font: string; getValue: (cell: CellInterface) => any; gridRef: MutableRefObject<{ container: HTMLDivElement | null; focus: () => void; getCellBounds: (coords: CellInterface) => AreaProps; getCellCoordsFromOffset: (x: number, y: number) => CellInterface; getCellOffsetFromCoords: (coords: CellInterface) => CellPosition; getScrollPosition: () => ScrollCoords; getViewPort: () => ViewPortProps; isMergedCell: (coords: CellInterface) => boolean; resetAfterIndices: (coords: CellInterface, shouldForceUpdate?: undefined | false | true) => void; resizeColumns: (indices: number[]) => void; resizeRows: (indices: number[]) => void; scrollTo: (scrollPosition: ScrollCoords) => void; scrollToItem: (coords: OptionalCellInterface, align?: Align) => void; stage: typeof Stage | null }>; initialVisibleRows: number; minColumnWidth: number; resizeOnScroll: boolean; resizeStrategy: ResizeStrategy; rowCount: undefined | number; timeout: number }): AutoResizerResults
-
Parameters
-
__namedParameters: { cellSpacing: number; font: string; getValue: (cell: CellInterface) => any; gridRef: MutableRefObject<{ container: HTMLDivElement | null; focus: () => void; getCellBounds: (coords: CellInterface) => AreaProps; getCellCoordsFromOffset: (x: number, y: number) => CellInterface; getCellOffsetFromCoords: (coords: CellInterface) => CellPosition; getScrollPosition: () => ScrollCoords; getViewPort: () => ViewPortProps; isMergedCell: (coords: CellInterface) => boolean; resetAfterIndices: (coords: CellInterface, shouldForceUpdate?: undefined | false | true) => void; resizeColumns: (indices: number[]) => void; resizeRows: (indices: number[]) => void; scrollTo: (scrollPosition: ScrollCoords) => void; scrollToItem: (coords: OptionalCellInterface, align?: Align) => void; stage: typeof Stage | null }>; initialVisibleRows: number; minColumnWidth: number; resizeOnScroll: boolean; resizeStrategy: ResizeStrategy; rowCount: undefined | number; timeout: number }
-
cellSpacing: number
-
font: string
-
-
gridRef: MutableRefObject<{ container: HTMLDivElement | null; focus: () => void; getCellBounds: (coords: CellInterface) => AreaProps; getCellCoordsFromOffset: (x: number, y: number) => CellInterface; getCellOffsetFromCoords: (coords: CellInterface) => CellPosition; getScrollPosition: () => ScrollCoords; getViewPort: () => ViewPortProps; isMergedCell: (coords: CellInterface) => boolean; resetAfterIndices: (coords: CellInterface, shouldForceUpdate?: undefined | false | true) => void; resizeColumns: (indices: number[]) => void; resizeRows: (indices: number[]) => void; scrollTo: (scrollPosition: ScrollCoords) => void; scrollToItem: (coords: OptionalCellInterface, align?: Align) => void; stage: typeof Stage | null }>
-
initialVisibleRows: number
-
minColumnWidth: number
-
resizeOnScroll: boolean
-
-
rowCount: undefined | number
-
timeout: number
Auto sizer hook