import React from "react"; import { type RowMarkerOptions } from "../../data-editor/data-editor.js"; import { DataEditorAll as DataEditor } from "../../data-editor-all.js"; import { BeautifulWrapper, Description, 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) => ( Row Markers can be controlled by setting the rowMarkers prop. }> ), ], }; interface RowMarkersProps { markers: RowMarkerOptions["kind"]; } export const RowMarkers: React.VFC = p => { const { cols, getCellContent } = useMockDataGenerator(10, false); return ( ); }; (RowMarkers as any).args = { markers: "both", }; (RowMarkers as any).argTypes = { markers: { control: { type: "select" }, options: ["both", "checkbox", "number", "none", "clickable-number", "checkbox-visible"], }, };