@univerjs/docs-ui v0.5.4


Function: useResize()

function useResize(
   editor?, 
   isSingle?, 
   autoScrollbar?, 
   autoScroll?): {
  checkScrollBar: DebouncedFunc<() => void>;
  resize: () => void;
}

Defined in: submodules/univer/packages/docs-ui/src/views/rich-text-editor/hooks/useResize.ts:26

Parameters

ParameterTypeDefault value
editor?Editorundefined
isSingle?booleantrue
autoScrollbar?booleanundefined
autoScroll?booleanundefined

Returns

{
  checkScrollBar: DebouncedFunc<() => void>;
  resize: () => void;
}
NameTypeDefined in
checkScrollBarDebouncedFunc<() => void>submodules/univer/packages/docs-ui/src/views/rich-text-editor/hooks/useResize.ts:134
resize() => voidsubmodules/univer/packages/docs-ui/src/views/rich-text-editor/hooks/useResize.ts:134