import React from "react"; import { DataEditorAll as DataEditor } from "../../data-editor-all.js"; import { BeautifulWrapper, Description, MoreInfo, PropName, useMockDataGenerator, defaultProps, } from "../../data-editor/stories/utils.js"; import { SimpleThemeWrapper } from "../../stories/story-utils.js"; export default { title: "Glide-Data-Grid/DataEditor Demos", decorators: [ (Story: React.ComponentType) => ( You can resize columns by dragging their edges, as long as you respond to the{" "} onColumnResize prop. By setting the overscrollX property extra space can be allocated at the end of the grid to allow for easier resizing of the final column. You can highlight multiple columns to resize them all at once. }> ), ], }; export const ResizableColumns: React.VFC = () => { const { cols, getCellContent, onColumnResize } = useMockDataGenerator(60); return ( ({ baseFontStyle: "0.8125rem", headerFontStyle: "600 0.8125rem", editorFontSize: "0.8125rem", }), [] )} onColumnResize={onColumnResize} /> ); };